Cleanup
This commit is contained in:
@@ -242,11 +242,8 @@ public class SectorInfo{
|
|||||||
stat.loaded = true;
|
stat.loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//get item delta
|
|
||||||
int delta = deltas[item.id];
|
|
||||||
|
|
||||||
//store means
|
//store means
|
||||||
stat.means.add(delta);
|
stat.means.add(deltas[item.id]);
|
||||||
stat.mean = stat.means.rawMean();
|
stat.mean = stat.means.rawMean();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -276,7 +276,8 @@ public class ConstructBlock extends Block{
|
|||||||
if(clampedAmount > 0 && accumulated > 0){ //if it's positive, add it to the core
|
if(clampedAmount > 0 && accumulated > 0){ //if it's positive, add it to the core
|
||||||
if(core != null && requirements[i].item.unlockedNow()){ //only accept items that are unlocked
|
if(core != null && requirements[i].item.unlockedNow()){ //only accept items that are unlocked
|
||||||
int accepting = core.acceptStack(requirements[i].item, accumulated, builder);
|
int accepting = core.acceptStack(requirements[i].item, accumulated, builder);
|
||||||
core.handleStack(requirements[i].item, accepting, builder);
|
//transfer items directly, as this is not production.
|
||||||
|
core.items.add(requirements[i].item, accepting);
|
||||||
accumulator[i] -= accepting;
|
accumulator[i] -= accepting;
|
||||||
}else{
|
}else{
|
||||||
accumulator[i] -= accumulated;
|
accumulator[i] -= accumulated;
|
||||||
|
|||||||
Reference in New Issue
Block a user