mirror of
https://github.com/songoda/UltimateTimber.git
synced 2024-12-01 14:23:24 +01:00
Priority and location
This commit is contained in:
parent
bd3097422e
commit
ae7c7e425d
@ -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 {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user