From 139be1bc23550d8f52ec0f268fdb724b9e2c3f98 Mon Sep 17 00:00:00 2001 From: Voxpire Date: Mon, 21 Nov 2022 15:11:02 +0000 Subject: [PATCH] fix: Fixes mount block NPE (#1257) --- Projects/UOContent/Mobiles/PlayerMobile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/UOContent/Mobiles/PlayerMobile.cs b/Projects/UOContent/Mobiles/PlayerMobile.cs index 3eb7e4d44..bd2ecd665 100644 --- a/Projects/UOContent/Mobiles/PlayerMobile.cs +++ b/Projects/UOContent/Mobiles/PlayerMobile.cs @@ -1091,7 +1091,7 @@ namespace Server.Mobiles } } - if (!_mountBlock.CheckBlock() || _mountBlock.Expiration < Core.Now + duration) + if (_mountBlock == null || !_mountBlock.CheckBlock() || _mountBlock.Expiration < Core.Now + duration) { _mountBlock?.RemoveBlock(this); _mountBlock = new MountBlock(duration, type, this);