From 5c4f5111f8cff4c2c7936855caed9542121ec9f3 Mon Sep 17 00:00:00 2001 From: Chase Cooper Date: Sat, 9 May 2026 21:19:07 -0400 Subject: [PATCH] Fix chest collision shape to prevent bug (#1556) --- Minecraft.World/ChestTile.cpp | 5 +++++ Minecraft.World/ChestTile.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Minecraft.World/ChestTile.cpp b/Minecraft.World/ChestTile.cpp index ff3c0b406..27e9ee97c 100644 --- a/Minecraft.World/ChestTile.cpp +++ b/Minecraft.World/ChestTile.cpp @@ -24,6 +24,11 @@ ChestTile::~ChestTile() delete random; } +void ChestTile::updateDefaultShape() +{ + setShape(1 / 16.0f, 0, 1 / 16.0f, 15 / 16.0f, 14 / 16.0f, 15 / 16.0f); +} + bool ChestTile::isSolidRender(bool isServerLevel) { return false; diff --git a/Minecraft.World/ChestTile.h b/Minecraft.World/ChestTile.h index 4fefeea9f..44b0aa432 100644 --- a/Minecraft.World/ChestTile.h +++ b/Minecraft.World/ChestTile.h @@ -57,4 +57,5 @@ public: virtual bool hasAnalogOutputSignal(); virtual int getAnalogOutputSignal(Level *level, int x, int y, int z, int dir); virtual void registerIcons(IconRegister *iconRegister); + void updateDefaultShape() override; }; \ No newline at end of file