AA turret placement overlap fix

This commit is contained in:
Anuken
2025-12-24 11:53:33 -05:00
parent 60eb3afb8d
commit 7886e9fe52
7 changed files with 16 additions and 15 deletions
@@ -54,7 +54,9 @@ public class ContinuousLiquidTurret extends ContinuousTurret{
}
});
ammoTypes.each((item, type) -> placeOverlapRange = Math.max(placeOverlapRange, range + type.rangeChange + placeOverlapMargin));
if(targetGround){
ammoTypes.each((item, type) -> placeOverlapRange = Math.max(placeOverlapRange, range + type.rangeChange + placeOverlapMargin));
}
super.init();
}
@@ -91,7 +91,9 @@ public class ItemTurret extends Turret{
}
});
ammoTypes.each((item, type) -> placeOverlapRange = Math.max(placeOverlapRange, range + type.rangeChange + placeOverlapMargin));
if(targetGround){
ammoTypes.each((item, type) -> placeOverlapRange = Math.max(placeOverlapRange, range + type.rangeChange + placeOverlapMargin));
}
super.init();
}
@@ -54,7 +54,9 @@ public class LiquidTurret extends Turret{
}
});
ammoTypes.each((item, type) -> placeOverlapRange = Math.max(placeOverlapRange, range + type.rangeChange + placeOverlapMargin));
if(targetGround){
ammoTypes.each((item, type) -> placeOverlapRange = Math.max(placeOverlapRange, range + type.rangeChange + placeOverlapMargin));
}
super.init();
}