So I have a block, that has two slots, and 11 buttons. Buttons from 0 to 9, increase and decrease important variables, and 10, should convert the item in the slot, to a defined item / block. This works fine on a server (Me hosting the server and joining via a client), but when playing single player, it does not accept the item properly, making a ghost copy of it in the slot, and when the item is converted, it almost instantly removes itself.
Code:
PacketHandler: http://paste.minecraftforge.net/view/765c6e9a
TileEntity (Useful Methods): http://paste.minecraftforge.net/view/1dc73dde
GUI (Parts that send packets): http://paste.minecraftforge.net/view/96b9161f
If you need anything else, just ask
Any help is much appricated, dvd604
EDIT: Here's the GitHub, that's all of my code. https://github.com/dvd604/Xperium
EDIT 2: It was a problem with decrStackSize, spotted by a friend. Thank's everyone!