From 025ac78e27bcf595ecc92192b27499fc7ddf6d5a Mon Sep 17 00:00:00 2001 From: Cardillan <122014763+cardillan@users.noreply.github.com> Date: Wed, 4 Feb 2026 20:22:55 +0100 Subject: [PATCH 1/2] Clear buffer on drawflush (#11582) --- core/src/mindustry/logic/LExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 3c5dfea51e..d28d433e7b 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -989,8 +989,8 @@ public class LExecutor{ public void run(LExecutor exec){ if(target.building() instanceof LogicDisplayBuild d && d.isValid() && (d.team == exec.team || exec.privileged)){ d.flushCommands(exec.graphicsBuffer); - exec.graphicsBuffer.clear(); } + exec.graphicsBuffer.clear(); } } From a8e829e3ee7c9dea29d43c10b28f8266a3218ee9 Mon Sep 17 00:00:00 2001 From: Mars <49356012+7003Mars@users.noreply.github.com> Date: Thu, 5 Feb 2026 03:23:24 +0800 Subject: [PATCH 2/2] Ensure onNewPlan() is also called on mobile when placing schematics (#11581) --- core/src/mindustry/input/MobileInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java index c8daa118fc..154b0e957c 100644 --- a/core/src/mindustry/input/MobileInput.java +++ b/core/src/mindustry/input/MobileInput.java @@ -237,6 +237,7 @@ public class MobileInput extends InputHandler implements GestureListener{ if(validPlace(plan.x, plan.y, plan.block, plan.rotation, null, true)){ BuildPlan other = getPlan(plan.x, plan.y, plan.block.size, null); BuildPlan copy = plan.copy(); + plan.block.onNewPlan(copy); if(other == null){ player.unit().addBuild(copy); @@ -691,7 +692,6 @@ public class MobileInput extends InputHandler implements GestureListener{ }else if(mode == placing && isPlacing() && validPlace(cursor.x, cursor.y, block, rotation) && !checkOverlapPlacement(cursor.x, cursor.y, block)){ //add to selection queue if it's a valid place position selectPlans.add(lastPlaced = new BuildPlan(cursor.x, cursor.y, rotation, block, block.nextConfig())); - block.onNewPlan(lastPlaced); }else if(mode == breaking && validBreak(linked.x,linked.y) && !hasPlan(linked)){ //add to selection queue if it's a valid BREAK position selectPlans.add(new BuildPlan(linked.x, linked.y));