SpoutDev/Spout — Issue #873: inventory.removeItem removes any custom items/blocks in the inventory
Author: aPunch
Created: 2011-11-04 14:19:24+00:00
State: open

Name of project: Spout

Project build: 510 (SpoutCraft 748)

CraftBukkit build: 1337

Description of issue: When using inv.removeItem(goldCoin), for example, the first custom item in my inventory is removed, no matter which type it is. I tested with vanilla items, and they are removed as expected.

Steps to reproduce:

-use the code, 'player.getInventory().removeItem(anyCustomItemOrBlock);'
-fill hot bar with other custom items and vanilla items
-execute the code in-game using a command or something
-watch as the first custom item that matches the size of the 'anyCustomItemOrBlock' is removed, no matter what type it is

I'll provide more information as I test further.

Thanks,
aPunch