mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-14 11:59:20 +07:00
Merge pull request #3129 from DeltaNedas/patch-12
minor serverside optimisation in roomba
This commit is contained in:
commit
0b7c8bdcd8
@ -156,6 +156,7 @@ public class StackConveyor extends Block implements Autotiler{
|
||||
if(bits[0] == 0 && blends(tile, rotation, 0) && !blends(tile, rotation, 2)) state = stateLoad; // a 0 that faces into a conveyor with none behind it
|
||||
if(bits[0] == 0 && !blends(tile, rotation, 0) && blends(tile, rotation, 2)) state = stateUnload; // a 0 that faces into none with a conveyor behind it
|
||||
|
||||
if(!headless){
|
||||
blendprox = 0;
|
||||
|
||||
for(int i = 0; i < 4; i++){
|
||||
@ -163,6 +164,7 @@ public class StackConveyor extends Block implements Autotiler{
|
||||
blendprox |= (1 << i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//update other conveyor state when this conveyor's state changes
|
||||
if(state != lastState){
|
||||
|
Loading…
Reference in New Issue
Block a user