mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 16:59:37 +01:00
Implement xp
This commit is contained in:
parent
c890ff5605
commit
60754c9380
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user