Turret reload 'fix' moved to PowerTurret

This commit is contained in:
Anuken
2026-02-28 00:05:22 -05:00
parent 5a2a1658ce
commit d0005aea7f
2 changed files with 8 additions and 3 deletions

View File

@@ -47,6 +47,13 @@ public class PowerTurret extends Turret{
return shootType;
}
@Override
public boolean shouldConsume(){
//when the block is first placed, it shouldn't consume power/liquid just to "cool down" from the initial reload
//thus, it should only consume once it has actually shot at something
return isShooting() || (reloadCounter < reload && totalShots > 0);
}
@Override
public boolean hasAmmo(){
//you can always rotate, but never shoot if there's no power

View File

@@ -351,9 +351,7 @@ public class Turret extends ReloadTurret{
@Override
public boolean shouldConsume(){
//when the block is first placed, it shouldn't consume power/liquid just to "cool down" from the initial reload
//thus, it should only consume once it has actually shot at something
return isShooting() || (reloadCounter < reload && totalShots > 0);
return isShooting() || reloadCounter < reload;
}
@Override