1
0
Fork 0

Close chest window if minecart is destroyed

This commit is contained in:
Lukas Pioch 2016-06-30 11:06:25 +02:00
parent 9af664dc73
commit 9b96c0d18d
1 changed files with 1 additions and 0 deletions

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);