From a5beafc769645179e6148dc857011408dc06f4ab Mon Sep 17 00:00:00 2001 From: DarkJune <56516330+DarkJune0122@users.noreply.github.com> Date: Wed, 2 Jul 2025 08:40:43 +0900 Subject: [PATCH] Removed 2 redundant checks in LExecutor.ControlI (#10980) --- core/src/mindustry/logic/LExecutor.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 29172fc63f..b9b8a1ecee 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -518,12 +518,12 @@ public class LExecutor{ Object obj = target.obj(); if(obj instanceof Building b && (exec.privileged || (b.team == exec.team && exec.linkIds.contains(b.id)))){ - if(type == LAccess.enabled && !p1.bool()){ - b.lastDisabler = exec.build; - } - - if(type == LAccess.enabled && p1.bool()){ - b.noSleep(); + if(type == LAccess.enabled){ + if(p1.bool()) { + b.noSleep(); + }else{ + b.lastDisabler = exec.build; + } } if(type.isObj && p1.isobj){