AA turret placement overlap fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user