From ac3ab6971d4b24941f6e6f1c66a7465edfdbfd70 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Mon, 10 Feb 2020 13:11:49 +0100 Subject: [PATCH] Undo the last 5 --- .../world/blocks/distribution/CraterConveyor.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java index ae4c47359a..e440f751a9 100644 --- a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java @@ -26,8 +26,6 @@ import static mindustry.Vars.*; public class CraterConveyor extends Block implements Autotiler{ private TextureRegion[] regions = new TextureRegion[8]; - protected final Array upstreamTiles = new Array<>(); - public float speed = 0f; public CraterConveyor(String name){ @@ -142,7 +140,7 @@ public class CraterConveyor extends Block implements Autotiler{ entity.blendbit2 = 0; if(bits[0] == 0 && blends(tile, tile.rotation(), 0) && !blends(tile, tile.rotation(), 2)) entity.blendbit2 = 5; // a 0 that faces into a crater conveyor with none behind it - if(!upstream(tile, upstreamTiles).isEmpty() && !blends(tile, tile.rotation(), 0)) entity.blendbit2 = 6; // a 0 that faces into none with a crater conveyor behind it + if(bits[0] == 0 && !blends(tile, tile.rotation(), 0)) entity.blendbit2 = 6; // a 0 that faces into none with a crater conveyor behind it entity.blendbit1 = bits[0]; entity.blendsclx = bits[1]; @@ -285,7 +283,7 @@ public class CraterConveyor extends Block implements Autotiler{ if( entity.blendbit1 == 0 // 1 input from the back, 0 from the sides || entity.blendbit1 == 2 // 1 input from the back, 1 from the sides || entity.blendbit1 == 3 // 1 input from the back, 2 from the sides - ) if(blends(tile, tile.rotation(), 2)) cons.get(tile.back()); + ) cons.get(tile.back()); if( entity.blendbit1 == 3 // 1 input from the back, 2 from the sides || entity.blendbit1 == 4 // 0 input from the back, 2 from the sides @@ -300,12 +298,6 @@ public class CraterConveyor extends Block implements Autotiler{ ) cons.get(tile.left()); } - private Array upstream(Tile tile, Array upstreamTiles){ - upstreamTiles.clear(); - upstream(tile, upstreamTiles::add); - return upstreamTiles; - } - // ▲ | ▼ fixme: refactor // awaken inputting conveyors