mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed bug with repairing wooden tools.
This commit is contained in:
parent
a01a5a737b
commit
1edc32c6b0
@ -13,6 +13,7 @@ Version 1.3.06-dev
|
||||
+ Changed Archery's Daze to deal 4 DMG on proc (2 Hearts)
|
||||
+ Changed /addlevel command to work for offline users
|
||||
= Fixed mmoupdate not being useable from console
|
||||
= Fixed bug with repairing wooden tools
|
||||
! Changed PlayerProfile constructor to always take a boolean
|
||||
! Changed getPlayerProfile function to work for online & offline users
|
||||
|
||||
|
@ -484,5 +484,6 @@ public class Repair {
|
||||
int slot = inventory.first(Material.WOOD);
|
||||
ItemStack item = inventory.getItem(slot);
|
||||
item.setAmount(item.getAmount() - 1);
|
||||
inventory.setItem(slot, item);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user