Hbm's Nuclear Tech Mod

Hbm's Nuclear Tech Mod

1M Downloads

Mass storage item dupe

abel1502 opened this issue ยท 6 comments

commented

If you switch the item stored in a mass storage unit (i.e. left click the filter slot with it) while it's not empty, all the items inside are transformed into the new one. I believe the solution is to forbid changing the item stored in non-empty MSUs.

commented

Can't replicate this since filter slots are already supposed to be locked when the thing is filled.

commented

I can see the check in

//Don't allow for a type change when the thing isn't empty
if(storage.getStockpile() > 0)
return ret;
, but I have once again tested it manually and the item can be changed even when the storage isn't empty. It seems to work reliably and regardless of the kind of MSU. I suspect slotClick simply isn't invoked, since if I place a stack of items into the filter slot, it is retained as a stack despite
if(slot.getHasStack()) {
slot.getStack().stackSize = 1;
}

commented

Wait, are you using the NH version of NEI?

commented

god dammit not again

commented

Yes, I am

commented

god dammit not again

"Help i accidentally used the NH version of NEI again"