From 33012856d4af3583ac155aa604f9f7ff210ec13a Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 17 Feb 2011 16:01:32 -0800 Subject: [PATCH] Changes up until now. --- mcMMO/com/gmail/nossr50/mcBlockListener.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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();