mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Fixed #11403
This commit is contained in:
parent
15efb721a0
commit
3791a7f375
1 changed files with 8 additions and 0 deletions
|
|
@ -581,6 +581,14 @@ public class Turret extends ReloadTurret{
|
|||
super.handleLiquid(source, liquid, amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConsume(){
|
||||
if(heatRequirement > 0 && heatReq <= 0f){
|
||||
return false;
|
||||
}
|
||||
return super.canConsume();
|
||||
}
|
||||
|
||||
protected boolean validateTarget(){
|
||||
return !Units.invalidateTarget(target, canHeal() ? Team.derelict : team, x, y) || isControlled() || logicControlled();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue