Fix greenhouse door model

This commit is contained in:
Nedelosk committed 2017-04-07 13:29:25 +02:00
1 parent 6e2ed37e80
commit 05d6dc3d4a
1 file changed
+6
@@ -250,6 +250,12 @@ public class BlockGreenhouseDoor extends BlockGreenhouse implements IStateMapper
public IBlockState getStateFromMeta(int meta) {
return (meta & 8) > 0 ? this.getDefaultState().withProperty(HALF, BlockDoor.EnumDoorHalf.UPPER).withProperty(HINGE, (meta & 1) > 0 ? BlockDoor.EnumHingePosition.RIGHT : BlockDoor.EnumHingePosition.LEFT).withProperty(POWERED, (meta & 2) > 0) : this.getDefaultState().withProperty(HALF, BlockDoor.EnumDoorHalf.LOWER).withProperty(FACING, EnumFacing.getHorizontal(meta & 3).rotateYCCW()).withProperty(OPEN, (meta & 4) > 0);
}
@SideOnly(Side.CLIENT)
@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
return layer == BlockRenderLayer.TRANSLUCENT;
}
@Override
@SideOnly(Side.CLIENT)