minor serverside optimisation

This commit is contained in:
DeltaNedas 2020-10-26 13:32:50 +00:00 committed by GitHub
parent 526b1add26
commit 6c7428a1fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ public class StackConveyor extends Block implements Autotiler{
int[] bits = buildBlending(tile, rotation, null, true);
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(!Vars.headless){
blendprox = 0;
for(int i = 0; i < 4; i++){
@ -163,6 +163,7 @@ public class StackConveyor extends Block implements Autotiler{
blendprox |= (1 << i);
}
}
}
//update other conveyor state when this conveyor's state changes
if(state != lastState){