Conduit junction replacement fix

This commit is contained in:
Anuken
2023-06-16 13:19:52 -04:00
parent d4e7f4a2ee
commit 58cd1852f1
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ public class Conduit extends LiquidBlock implements Autotiler{
public Block getReplacement(BuildPlan req, Seq<BuildPlan> plans){
if(junctionReplacement == null) return this;
Boolf<Point2> cont = p -> plans.contains(o -> o.x == req.x + p.x && o.y == req.y + p.y && o.rotation == req.rotation && (req.block instanceof Conduit || req.block instanceof LiquidJunction));
Boolf<Point2> cont = p -> plans.contains(o -> o.x == req.x + p.x && o.y == req.y + p.y && (req.block instanceof Conduit || req.block instanceof LiquidJunction));
return cont.get(Geometry.d4(req.rotation)) &&
cont.get(Geometry.d4(req.rotation - 2)) &&
req.tile() != null &&