From 21656becf947ee0dc54aaaa9b70417f5a6aace58 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 8 Apr 2017 16:30:14 -0400 Subject: [PATCH] Fixes issues with Altered Fabric --- .../com/zixiken/dimdoors/shared/blocks/BlockDimWall.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockDimWall.java b/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockDimWall.java index 52c7dc5f..d3d27243 100644 --- a/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockDimWall.java +++ b/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockDimWall.java @@ -129,11 +129,10 @@ public class BlockDimWall extends Block { return false; } if (!world.isRemote) { //@todo on a server, returning false or true determines where the block gets placed? - if (!player.capabilities.isCreativeMode) { + if (!player.isCreative()) { heldItem.stackSize--; } - world.setBlockState(pos, block.getStateForPlacement(world, pos, side, hitX, hitY, hitZ, 0, player, heldItem)); //choosing getStateForPlacement over getDefaultState, because it will cause directional blocks, like logs to rotate correctly - heldItem.onItemUse(player, world, pos, hand, side, hitX, hitY, hitZ); + world.setBlockState(pos, block.getStateForPlacement(world, pos, side, hitX, hitY, hitZ, heldItem.getMetadata(), player, heldItem)); //choosing getStateForPlacement over getDefaultState, because it will cause directional blocks, like logs to rotate correctly } return true; }