We copy here so we don't modify the quantity of the item group IStorage uses

This commit is contained in:
Raoul Van den Berge
2016-05-19 14:34:39 +02:00
parent 6abb531cb9
commit f0cc9cc9db

View File

@@ -349,7 +349,8 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
}
if (group.compareNoQuantity(otherGroup)) {
group.setQuantity(group.getQuantity() + otherGroup.getQuantity());
// We copy here so we don't modify the quantity of the item group IStorage uses
itemGroups.set(i, group.copy(group.getQuantity() + otherGroup.getQuantity()));
combinedGroups.add(j);
}