(Hopefully) Fixed anvil cost

This commit is contained in:
BuildTools 2020-10-14 10:12:15 +01:00
parent 198bd241de
commit a2eea5496b

View File

@ -40,9 +40,8 @@ public class AnvilListeners implements Listener {
modCost = newOut.getValue();
}
final int cost = modCost + event.getInventory().getRepairCost();
Bukkit.getScheduler().runTask(EcoEnchantsPlugin.getInstance(), () -> {
final int cost = modCost + event.getInventory().getRepairCost();
event.getInventory().setRepairCost(cost);
event.setResult(newOut.getKey());
event.getInventory().setItem(2, newOut.getKey());