1
0

Merge pull request #3244 from cuberite/minecart_chest

Close chest window if minecart is destroyed
This commit is contained in:
Mattes D 2016-07-01 08:45:11 +02:00 committed by GitHub
commit 6310d0d286

View File

@ -1206,6 +1206,7 @@ void cMinecartWithChest::OpenNewWindow()
void cMinecartWithChest::Destroyed()
{
GetWindow()->OwnerDestroyed();
cItems Pickups;
m_Contents.CopyToItems(Pickups);
GetWorld()->SpawnItemPickups(Pickups, GetPosX(), GetPosY() + 1, GetPosZ(), 4);