Minor tweaks & fixes. Changed Tree Feller to use custom item drop method

so we fire the event like we're supposed to.
This commit is contained in:
GJ
2012-02-24 11:21:07 -05:00
parent fb35e7dd5d
commit 1cd7181d26
3 changed files with 65 additions and 115 deletions

View File

@ -126,10 +126,12 @@ public class WoodCutting
}
//Remove the block
x.setData((byte) 0);
x.setType(Material.AIR);
plugin.misc.blockWatchList.remove(x);
//Drop the block
x.getWorld().dropItemNaturally(x.getLocation(), item);
m.mcDropItem(x.getLocation(), item);
//Damage the tool more if the Tree is larger
durabilityLoss++;
@ -146,6 +148,7 @@ public class WoodCutting
//Remove the block
x.setData((byte) 0);
x.setType(Material.AIR);
plugin.misc.blockWatchList.remove(x);
//Damage the tool more if the Tree is larger
durabilityLoss++;