Fix:Prevent horse spawner crash (#433)

This commit is contained in:
Alezito2008 2026-03-04 13:42:32 -03:00 committed by Portal
parent 4f996519cf
commit 8bccd2035a

View file

@ -479,7 +479,7 @@ void EntityHorse::createInventory()
void EntityHorse::updateEquipment() void EntityHorse::updateEquipment()
{ {
if (!level->isClientSide) if (level && !level->isClientSide)
{ {
setSaddled(inventory->getItem(INV_SLOT_SADDLE) != NULL); setSaddled(inventory->getItem(INV_SLOT_SADDLE) != NULL);
if (canWearArmor()) if (canWearArmor())