mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 14:01:03 -08:00
Merge pull request #3129 from DeltaNedas/patch-12
minor serverside optimisation in roomba
This commit is contained in:
commit
0b7c8bdcd8
1 changed files with 6 additions and 4 deletions
|
|
@ -156,11 +156,13 @@ 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
|
||||
|
||||
blendprox = 0;
|
||||
if(!headless){
|
||||
blendprox = 0;
|
||||
|
||||
for(int i = 0; i < 4; i++){
|
||||
if(blends(tile, rotation, i)){
|
||||
blendprox |= (1 << i);
|
||||
for(int i = 0; i < 4; i++){
|
||||
if(blends(tile, rotation, i)){
|
||||
blendprox |= (1 << i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue