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

This commit is contained in:
DarkJune
2025-07-02 08:40:43 +09:00
committed by GitHub
parent b6195cc31e
commit a5beafc769

View File

@@ -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){