mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-01 05:04:43 +02:00
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:
@ -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++;
|
||||
|
Reference in New Issue
Block a user