Simple Storage Network

Simple Storage Network

57M Downloads

Stack upgrade only moves stack for import

1JackBlack1 opened this issue ยท 1 comments

commented

Version 1.2.4 states that the stack upgrade should move an entire stack (64 items) for import and export cables.
However the export cable still has the old behaviour of outputting 2^(2+stack upgrades).
I haven't actually checked the import but assume it is fine.

It appears in the code (storagenetwork/master/TileMaster.java)
The updateExports still has at line 370:
insert = Math.min(insert, (int) Math.pow(2, tileCable.getUpgradesOfType(ItemUpgrade.STACK) + 2));
While updateImports has:
boolean hasStackUpgrade = tileCable.getUpgradesOfType(ItemUpgrade.STACK) > 0; int maxInsert = (hasStackUpgrade) ? 64 : 4; int insert = Math.min(stackCurrent.getCount(), maxInsert);