Fix rusty gear item stack not updating client side

Part of #6
This commit is contained in:
zontreck 2025-06-07 13:18:21 -07:00
parent 6b6e2af0fc
commit 8d875653e0
4 changed files with 11 additions and 6 deletions

View file

@ -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();
}