From ddbb0176e735ec33ef8caf5b4bc1bb3f03846d88 Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Fri, 3 Feb 2012 14:11:37 -0500 Subject: [PATCH] Fix for Issue #7. --- .../java/com/gmail/nossr50/listeners/mcBlockListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java index 9fc9fb014..9c3b712d8 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java @@ -247,7 +247,7 @@ public class mcBlockListener implements Listener { mat = Material.SAPLING; - item = new ItemStack(mat, 1, (short)0, blockx.getData()); + item = new ItemStack(mat, 1, (short)0, (byte)(blockx.getData()-8)); if(Math.random() * 10 > 9) m.mcDropItem(blockx.getLocation(), item); @@ -455,7 +455,7 @@ public class mcBlockListener implements Listener if(Math.random() * 10 > 9) { - ItemStack x = new ItemStack(Material.SAPLING, 1, (short)0, block.getData()); + ItemStack x = new ItemStack(Material.SAPLING, 1, (short)0, (byte)(block.getData()-8)); m.mcDropItem(block.getLocation(), x); } block.setType(Material.AIR);