Fixed bug with repairing wooden tools.

This commit is contained in:
GJ 2012-04-05 14:45:35 -04:00
parent a01a5a737b
commit 1edc32c6b0
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Version 1.3.06-dev
+ Changed Archery's Daze to deal 4 DMG on proc (2 Hearts) + Changed Archery's Daze to deal 4 DMG on proc (2 Hearts)
+ Changed /addlevel command to work for offline users + Changed /addlevel command to work for offline users
= Fixed mmoupdate not being useable from console = Fixed mmoupdate not being useable from console
= Fixed bug with repairing wooden tools
! Changed PlayerProfile constructor to always take a boolean ! Changed PlayerProfile constructor to always take a boolean
! Changed getPlayerProfile function to work for online & offline users ! Changed getPlayerProfile function to work for online & offline users

View File

@ -484,5 +484,6 @@ public class Repair {
int slot = inventory.first(Material.WOOD); int slot = inventory.first(Material.WOOD);
ItemStack item = inventory.getItem(slot); ItemStack item = inventory.getItem(slot);
item.setAmount(item.getAmount() - 1); item.setAmount(item.getAmount() - 1);
inventory.setItem(slot, item);
} }
} }