diff options
author | Mattes D <github@xoft.cz> | 2016-07-01 08:45:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 08:45:11 +0200 |
commit | 6310d0d286dbc6334571732476c1b00dc241a1e7 (patch) | |
tree | 6050394de38470adab89b5f5bd8caaf3b9cb4a36 /src | |
parent | Merge pull request #3232 from cuberite/LuaCallback (diff) | |
parent | Close chest window if minecart is destroyed (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Entities/Minecart.cpp | 1 |
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); |