Jump to content

MadModder

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by MadModder

  1. Thanks! It finally works! I checked worldObj.isRemote in #transferStackInSlot because it seemed to remove that issue when shift-clicking. Now, when I iterate through stacks in #onInventoryChanged, I don't need that. When I was changing my code basing on your advises, I observed one interesting thing: Calling super on #onInventoryChanged should do something, because it's implemented in Basic TileEntity from Minecraft. Also, I found out that TileEntityFurnace doesn't implement onInventoryChanged. When I'm implementing a method and super does nothing, then eclipse shows an error if I try to call it. Anyways, I removed that super - it did nothing in my case.
  2. Hi everyone, I have a little problem with my "machine", but it will probably apply to it more like a "chest". When I place any item in my input slot, nothing strange happens, but if I try to take that item out then it seems copied. It looks that my machine has that item in the input slot, but it stops working (if(inputSlot.stackSize == 0) progress = 0). It's something like ghost item: it disappears if I try to take it out or reopen the GUI. I had the same problem with shift-clicking, but it was solved by: if(te.worldObj.isRemote) return null; in Container.transferStackInSlot. I know that it is client-server sync problem, but I have no idea what piece of code I should modify in that case. My TileEntity: http://pastebin.com/VxFVf8qj and Container: http://pastebin.com/edwPCweR Did anyone had similar problem?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.