mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Cleanup
This commit is contained in:
parent
bb16d1c613
commit
810238d0f9
2 changed files with 3 additions and 5 deletions
|
|
@ -242,11 +242,8 @@ public class SectorInfo{
|
|||
stat.loaded = true;
|
||||
}
|
||||
|
||||
//get item delta
|
||||
int delta = deltas[item.id];
|
||||
|
||||
//store means
|
||||
stat.means.add(delta);
|
||||
stat.means.add(deltas[item.id]);
|
||||
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(core != null && requirements[i].item.unlockedNow()){ //only accept items that are unlocked
|
||||
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;
|
||||
}else{
|
||||
accumulator[i] -= accumulated;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue