From 0ee05687d9da12502a9309f43009c1aa5350522a Mon Sep 17 00:00:00 2001 From: GJ Date: Sun, 25 Mar 2012 16:13:29 -0400 Subject: [PATCH] Removed old block place workaround code. --- .../com/gmail/nossr50/listeners/mcBlockListener.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java index 8a52ee5e3..fb8d3826e 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java @@ -97,17 +97,8 @@ public class mcBlockListener implements Listener { */ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onBlockPlace(BlockPlaceEvent event) { - Block block; + Block block = event.getBlock(); Player player = event.getPlayer(); - - //When blocks are placed on snow this event reports the wrong block. - if (event.getBlockReplacedState() != null && event.getBlockReplacedState().getType().equals(Material.SNOW)) { - block = event.getBlockAgainst(); - } - else { - block = event.getBlock(); - } - int id = block.getTypeId(); Material mat = block.getType();