From 1897fa0d66c1494c230abc2b8a4d651faec2b66e Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Wed, 31 Jul 2024 21:51:58 -0700 Subject: [PATCH] Do not disable while controlled --- src/extrasandredux/world/blocks/logic/TurretController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extrasandredux/world/blocks/logic/TurretController.java b/src/extrasandredux/world/blocks/logic/TurretController.java index 5a84663..a553910 100644 --- a/src/extrasandredux/world/blocks/logic/TurretController.java +++ b/src/extrasandredux/world/blocks/logic/TurretController.java @@ -120,7 +120,7 @@ public void updateTile(){ b.control(LAccess.enabled, 1, 0, 0, 0); Tmp.v1.trns(targetSetting.x, targetSetting.y * tilesize).add(b).scl(1f / tilesize); b.control(LAccess.shoot, Tmp.v1.x, Tmp.v1.y, 1, 0); - }else if(controlState == ControlState.disable){ + }else if(controlState == ControlState.disable && !b.isControlled()){ b.control(LAccess.enabled, 0, 0, 0, 0); }else{ b.control(LAccess.enabled, 1, 0, 0, 0);