summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-07-01 08:45:11 +0200
committerGitHub <noreply@github.com>2016-07-01 08:45:11 +0200
commit6310d0d286dbc6334571732476c1b00dc241a1e7 (patch)
tree6050394de38470adab89b5f5bd8caaf3b9cb4a36 /src
parentMerge pull request #3232 from cuberite/LuaCallback (diff)
parentClose chest window if minecart is destroyed (diff)
downloadcuberite-6310d0d286dbc6334571732476c1b00dc241a1e7.tar
cuberite-6310d0d286dbc6334571732476c1b00dc241a1e7.tar.gz
cuberite-6310d0d286dbc6334571732476c1b00dc241a1e7.tar.bz2
cuberite-6310d0d286dbc6334571732476c1b00dc241a1e7.tar.lz
cuberite-6310d0d286dbc6334571732476c1b00dc241a1e7.tar.xz
cuberite-6310d0d286dbc6334571732476c1b00dc241a1e7.tar.zst
cuberite-6310d0d286dbc6334571732476c1b00dc241a1e7.zip
Diffstat (limited to 'src')
-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);