fix: Fixes mount block NPE (#1257)
This commit is contained in:
parent
4c734a23b9
commit
139be1bc23
1 changed files with 1 additions and 1 deletions
|
|
@ -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?.RemoveBlock(this);
|
||||||
_mountBlock = new MountBlock(duration, type, this);
|
_mountBlock = new MountBlock(duration, type, this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue