From e5a5ce71887e7ffbd3182e193c0f08bd483000c5 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Tue, 5 Nov 2019 10:26:56 +0100 Subject: [PATCH] Stash questionable prototype --- core/src/io/anuke/mindustry/input/InputHandler.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/io/anuke/mindustry/input/InputHandler.java b/core/src/io/anuke/mindustry/input/InputHandler.java index f329d6f876..9d92883b3c 100644 --- a/core/src/io/anuke/mindustry/input/InputHandler.java +++ b/core/src/io/anuke/mindustry/input/InputHandler.java @@ -833,6 +833,12 @@ public abstract class InputHandler implements InputProcessor, GestureListener{ // skip powernodes we have already crossed off as air if(skip.contains(points.get(j))) continue; +// // do not suggest building where you cant? +// if(!validPlace(points.get(i[0]-1).x, points.get(i[0]-1).y, block, rotation)){ +// skip.add(points.get(i[0]-1)); +// return; +// } + Tile next = world.ltile(points.get(i[0]).x, points.get(i[0]).y); Tile loop = world.ltile(points.get(j).x, points.get(j).y);