fix chest materials

This commit is contained in:
Sen 2025-08-07 18:13:03 +02:00
parent 2eda9771ad
commit 0a95fbaaad
Signed by: sen
GPG key ID: 3AC50A6F47D1B722

View file

@ -52,14 +52,14 @@ public class BlockChest extends Block implements ITileEntityProvider, Rotatable
public BlockChest(int width, int height)
{
super(Material.WOOD);
super(width == 9 && height == 3 ? Material.WOOD : Material.SOLID);
this.setDefaultState(this.getBaseState().withProperty(FACING, Facing.NORTH).withProperty(OPEN, false));
this.width = width;
this.height = height;
this.setTab(CheatTab.TECHNOLOGY);
this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
this.setHardness(2.5F);
this.setSound(SoundType.WOOD);
this.setSound(width == 9 && height == 3 ? SoundType.WOOD : SoundType.STONE);
CHESTS.put(this.width * this.height, this);
}