Fix marker and bridge calculation game crashes, minor marker instruction fixes (#9112)

* Fix text setting in marker control

* Fix marker and bridge calculation game crashes, minor marker instruction code fixes
This commit is contained in:
ApsZoldat
2023-09-29 17:10:50 +03:00
committed by GitHub
parent 8b155828b7
commit 93269692ab
4 changed files with 12 additions and 8 deletions

View File

@@ -113,7 +113,7 @@ public class Placement{
}
public static void calculateBridges(Seq<BuildPlan> plans, ItemBridge bridge){
if(isSidePlace(plans)) return;
if(isSidePlace(plans) || plans.size == 0) return;
//check for orthogonal placement + unlocked state
if(!(plans.first().x == plans.peek().x || plans.first().y == plans.peek().y) || !bridge.unlockedNow()){
@@ -176,7 +176,7 @@ public class Placement{
}
public static void calculateBridges(Seq<BuildPlan> plans, DirectionBridge bridge, boolean hasJunction, Boolf<Block> same){
if(isSidePlace(plans)) return;
if(isSidePlace(plans) || plans.size == 0) return;
//check for orthogonal placement + unlocked state
if(!(plans.first().x == plans.peek().x || plans.first().y == plans.peek().y) || !bridge.unlockedNow()){