This commit is contained in:
Anuken
2021-10-02 12:05:02 -04:00
parent ce7e91f17b
commit d95662233c
2 changed files with 3 additions and 2 deletions

View File

@@ -1186,6 +1186,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
public boolean validPlace(int x, int y, Block type, int rotation, BuildPlan ignore){
//TODO with many requests, this is O(n * m), very laggy
for(BuildPlan req : player.unit().plans()){
if(req != ignore
&& !req.breaking