Skip to content

Commit

Permalink
Fix chests not being placeable next to other blocks with ENABLED prop
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Oct 13, 2019
1 parent 8b530d4 commit 18a3443
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public static boolean isToolEffectiveShared(ChestMaterial material, BlockState s
public static boolean canPlace(IWorldReader world, BlockPos pos) {
for(Direction side : Direction.values()) {
BlockState blockState = world.getBlockState(pos.offset(side));
if(blockState.getProperties().contains(ENABLED) && blockState.get(ENABLED)) {
Block block = blockState.getBlock();
if((block instanceof ColossalChest || block instanceof ChestWall || block instanceof Interface)
&& blockState.getProperties().contains(ENABLED) && blockState.get(ENABLED)) {
return false;
}
}
Expand Down

0 comments on commit 18a3443

Please sign in to comment.