Priority and location

This commit is contained in:
Esophose 2019-04-11 19:19:10 -06:00
parent bd3097422e
commit ae7c7e425d
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ public class TreeDefinitionManager extends Manager {
Set<ItemStack> extraItems = new HashSet<>();
for (ItemStack lootedItem : lootedItems)
extraItems.addAll(player.getInventory().addItem(lootedItem).values());
Location location = player.getLocation();
Location location = player.getLocation().clone().subtract(0.5, 0, 0.5);
for (ItemStack extraItem : extraItems)
location.getWorld().dropItemNaturally(location, extraItem);
} else {

View File

@ -32,7 +32,7 @@ public class TreeFallManager extends Manager implements Listener {
}
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
@EventHandler(priority = EventPriority.LOW)
public void onBlockBreak(BlockBreakEvent event) {
TreeDefinitionManager treeDefinitionManager = this.ultimateTimber.getTreeDefinitionManager();
TreeDetectionManager treeDetectionManager = this.ultimateTimber.getTreeDetectionManager();