generated from AriasCreations/vsmodtemplate
parent
6b6e2af0fc
commit
8d875653e0
4 changed files with 11 additions and 6 deletions
|
@ -35,7 +35,7 @@ namespace AriasServerUtils
|
|||
{
|
||||
if (entity is EntityPlayer player)
|
||||
{
|
||||
if (unmount && player.MountedOn.Entity != null)
|
||||
if (unmount && player.MountedOn != null && player.MountedOn.Entity != null)
|
||||
{
|
||||
player.TryUnmount();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue