Fix armor stands crashing the game

This commit is contained in:
piebot 2026-03-16 07:18:18 +03:00
parent 7443383791
commit 98ccca3eb0
4 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 809 B

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -170,7 +170,7 @@ const wchar_t *Textures::preLoaded[TN_COUNT] =
L"item/trapped",
L"item/trapped_double",
L"mob/armorstand/wood",
L"item/armor_stand",
//L"item/christmas",

View file

@ -4,7 +4,7 @@
class ArmorStandItem : public Item
{
public:
ArmorStandItem(int id) : Item(id) {}
ArmorStandItem(int id) : Item(id) { maxStackSize = 16; }
virtual ~ArmorStandItem() {}
virtual bool useOn(shared_ptr<ItemInstance> itemInstance, shared_ptr<Player> player,

View file

@ -111,7 +111,7 @@ void EntityIO::staticCtor()
eMinecraftColour_Mob_Rabbit_Colour1,
eMinecraftColour_Mob_Rabbit_Colour2, IDS_RABBIT);//change IDS_RABBIT later
setId(ArmorStand::create, eTYPE_ARMORSTAND, L"ArmorStand", 102),
setId(ArmorStand::create, eTYPE_ARMORSTAND, L"ArmorStand", 102);
setId(Villager::create, eTYPE_VILLAGER, L"Villager", 120, eMinecraftColour_Mob_Villager_Colour1, eMinecraftColour_Mob_Villager_Colour2, IDS_VILLAGER);