summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2016-06-30 11:06:25 +0200
committerLukas Pioch <lukas@zgow.de>2016-06-30 11:08:09 +0200
commit9b96c0d18d1a3e87e62f7905fdbb973832e2404c (patch)
tree6050394de38470adab89b5f5bd8caaf3b9cb4a36 /src/Entities/Minecart.cpp
parentMerge pull request #3232 from cuberite/LuaCallback (diff)
downloadcuberite-9b96c0d18d1a3e87e62f7905fdbb973832e2404c.tar
cuberite-9b96c0d18d1a3e87e62f7905fdbb973832e2404c.tar.gz
cuberite-9b96c0d18d1a3e87e62f7905fdbb973832e2404c.tar.bz2
cuberite-9b96c0d18d1a3e87e62f7905fdbb973832e2404c.tar.lz
cuberite-9b96c0d18d1a3e87e62f7905fdbb973832e2404c.tar.xz
cuberite-9b96c0d18d1a3e87e62f7905fdbb973832e2404c.tar.zst
cuberite-9b96c0d18d1a3e87e62f7905fdbb973832e2404c.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Minecart.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp
index 2b4a26e5c..8eda447cf 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -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);