Skip to content

Commit

Permalink
Fixed drawbridge block placing (At least for basic blocks)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuj1n committed Jun 4, 2018
1 parent 9e1b0a8 commit a63a8e3
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -146,10 +146,9 @@ public boolean placeBlock (BlockPos position)

if (item instanceof ItemBlock)
{
ItemBlock ib = (ItemBlock) item;

if (world.getBlockState(position).getBlock().isReplaceable(world, position))
{
fakePlayer.inventory.setInventorySlotContents(0, stack);
return ForgeHooks.onPlaceItemIntoWorld(stack, fakePlayer, world, position, getPlaceDirection(), 0, 0, 0, EnumHand.MAIN_HAND) == EnumActionResult.SUCCESS;
}
else
Expand Down

0 comments on commit a63a8e3

Please sign in to comment.