From 6c7428a1fb1492f30e8a3b497d39dcc5e53f9b9b Mon Sep 17 00:00:00 2001 From: DeltaNedas <39013340+DeltaNedas@users.noreply.github.com> Date: Mon, 26 Oct 2020 13:32:50 +0000 Subject: [PATCH] minor serverside optimisation --- .../world/blocks/distribution/StackConveyor.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/src/mindustry/world/blocks/distribution/StackConveyor.java b/core/src/mindustry/world/blocks/distribution/StackConveyor.java index f3c400ad9b..a7847a5ade 100644 --- a/core/src/mindustry/world/blocks/distribution/StackConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/StackConveyor.java @@ -155,12 +155,13 @@ 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; - 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); + } } }