mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-11-10 22:00:50 +01:00
Implement xp
This commit is contained in:
@@ -140,6 +140,9 @@ public class SimpleRepairManager implements RepairManager {
|
|||||||
// Remove the item
|
// Remove the item
|
||||||
removeOneFrom(inventory, repairItemLocation);
|
removeOneFrom(inventory, repairItemLocation);
|
||||||
|
|
||||||
|
// Give out XP like candy
|
||||||
|
Repair.xpHandler(player, PP, startDurability, newDurability, repairable.getXpMultiplier());
|
||||||
|
|
||||||
// Repair the item!
|
// Repair the item!
|
||||||
item.setDurability(newDurability);
|
item.setDurability(newDurability);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user