1
0

Fixed a possible crash

This commit is contained in:
tonibm19 2013-12-24 12:23:20 +01:00
parent 99ade2fa12
commit 84bfffcc15

View File

@ -15,6 +15,8 @@ public:
}
virtual void OnPlacedByPlayer(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override
{
if (a_BlockY > 1)
{
if
(
@ -58,6 +60,7 @@ public:
a_World->SpawnMob(a_BlockX + 0.5, a_BlockY - 2, a_BlockZ + 0.5, cMonster::mtIronGolem);
}
}
}
virtual bool GetPlacementBlockTypeMeta(
cWorld * a_World, cPlayer * a_Player,