FallenMoonNetwork / CanaryRecode

CanaryMod Recode Repository
Other
11 stars 44 forks source link

inventory.removeItem is not working properly #46

Closed spenk closed 11 years ago

spenk commented 11 years ago

player.getInventory().removeItem(slot) leaves a ghost item in player's inventory

NiccosSystem commented 11 years ago

It's removeItem(int id), not removeItem(int slot). Where id is the id of the item

damagefilter commented 11 years ago

As Nicco states. Also Inventory.setSlot(0,0,0,slot); will empty a slot too.