diff --git a/mcMMO/com/gmail/nossr50/mcBlockListener.java b/mcMMO/com/gmail/nossr50/mcBlockListener.java index 5c3df34cf..687b36441 100644 --- a/mcMMO/com/gmail/nossr50/mcBlockListener.java +++ b/mcMMO/com/gmail/nossr50/mcBlockListener.java @@ -19,7 +19,13 @@ public class mcBlockListener extends BlockListener { this.plugin = plugin; } public void onBlockPlace(BlockPlaceEvent event) { - Block block = event.getBlock(); + Block block; + if (event.getBlockReplacedState().getTypeId() == 78) { + block = event.getBlockAgainst(); + } + else { + block = event.getBlock(); + } int x = block.getX(); int y = block.getY(); int z = block.getZ();