This commit is contained in:
Anuken
2019-11-05 15:32:13 -05:00
parent 3e43f5577e
commit 21b7016fb5
5 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
package io.anuke.mindustry.input;
import io.anuke.arc.*;
import io.anuke.arc.collection.*;
import io.anuke.arc.math.*;
import io.anuke.arc.math.geom.*;
@@ -26,7 +27,7 @@ public class Placement{
Pools.freeAll(points);
points.clear();
if(conveyors){
if(conveyors && Core.settings.getBool("conveyorpathfinding")){
if(astar(startX, startY, endX, endY)){
return points;
}else{