BuildCraft|Core

BuildCraft|Core

7M Downloads

Fix all your getStackInSlotOnClosing

SoniEx2 opened this issue ยท 6 comments

commented

I think you forgot to updateClientSlot...?

commented

That's the correct behaviour in EntityRobot, you know? Think.

commented

But it's inconsistent with getStackInSlot(i) followed by setInventorySlotContents(i, null)!

commented

Yeah, var1 is supposed to be the slot number, splitting the stack in the inventory by it is weird. That said, no one should call this method, and even more, now that I think about it, there may be some of the robot boards assume they have complete control over the robot's inventory and might break if you forcefully add/remove stacks from it.

commented

@hea3ven - wait, that's the slot number!? okay that's a bug then wow

commented

Fixed. Not bothering to mention in changelog as nobody will hit this ever.