Fix:Prevent horse spawner crash (#433)

This commit is contained in:
Alezito2008 2026-03-04 13:42:32 -03:00 committed by GitHub
parent 206c6800f2
commit ac03b88a90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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