Merge pull request #3129 from DeltaNedas/patch-12

minor serverside optimisation in roomba
This commit is contained in:
Anuken 2020-10-26 11:19:22 -04:00 committed by GitHub
commit 0b7c8bdcd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}