Fixed #2335 (probably)

This commit is contained in:
Anuken 2020-08-10 14:28:43 -04:00
parent 6ab24ccefd
commit c4e8fef8d0

View file

@ -282,6 +282,11 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
controller.updateUnit();
}
//clear controller when it becomes invalid
if(!controller.isValidController()){
resetController();
}
//do not control anything when deactivated
if(deactivated){
controlWeapons(false, false);