Fix chest collision shape to prevent bug (#1556)

This commit is contained in:
Chase Cooper 2026-05-09 21:19:07 -04:00
parent 09df8928ee
commit 5c4f5111f8
2 changed files with 6 additions and 0 deletions

View file

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

View file

@ -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;
};