mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
(Hopefully) Fixed anvil cost
This commit is contained in:
parent
198bd241de
commit
a2eea5496b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user