I hereby claim:
- I am kdude63 on github.
- I am kdude63 (https://keybase.io/kdude63) on keybase.
- I have a public key whose fingerprint is 2F74 3B97 3662 918D C9CE E274 B00E 7431 EECD 12C5
To claim this, I am signing this object:
public void removeItem(ItemStack item, Player player) { | |
Material m = item.getType(); | |
int amount = item.getAmount(); | |
for (int c = 0; c < 36; c++) { | |
ItemStack slot = player.getInventory().getItem(c); | |
if (slot.getType() != null) { | |
if (slot.getType() == m) { | |
if (slot.getAmount() > amount) { | |
slot.setAmount(slot.getAmount() - amount); | |
return; |
I hereby claim:
To claim this, I am signing this object: