Removed 2 redundant checks in LExecutor.ControlI (#10980)

This commit is contained in:
DarkJune
2025-07-01 19:40:43 -04:00
committed by GitHub
parent b6195cc31e
commit a5beafc769
+6 -6
View File
@@ -518,12 +518,12 @@ public class LExecutor{
Object obj = target.obj(); Object obj = target.obj();
if(obj instanceof Building b && (exec.privileged || (b.team == exec.team && exec.linkIds.contains(b.id)))){ if(obj instanceof Building b && (exec.privileged || (b.team == exec.team && exec.linkIds.contains(b.id)))){
if(type == LAccess.enabled && !p1.bool()){ if(type == LAccess.enabled){
b.lastDisabler = exec.build; if(p1.bool()) {
} b.noSleep();
}else{
if(type == LAccess.enabled && p1.bool()){ b.lastDisabler = exec.build;
b.noSleep(); }
} }
if(type.isObj && p1.isobj){ if(type.isObj && p1.isobj){