mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Fixed #5685
This commit is contained in:
parent
fc80c23dde
commit
e64cd905d6
2 changed files with 4 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ public class Fx{
|
|||
Fill.circle(x, y, e.fslope() * 1.5f * size);
|
||||
}),
|
||||
|
||||
pointBeam = new Effect(25f, e -> {
|
||||
pointBeam = new Effect(25f, 300f, e -> {
|
||||
if(!(e.data instanceof Position)) return;
|
||||
|
||||
Position pos = e.data();
|
||||
|
|
|
|||
|
|
@ -126,6 +126,9 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||
if(isBuilding()){
|
||||
return state.rules.infiniteResources ? Float.MAX_VALUE : Math.max(type.clipSize, type.region.width) + buildingRange + tilesize*4f;
|
||||
}
|
||||
if(mining()){
|
||||
return type.clipSize + type.miningRange;
|
||||
}
|
||||
return type.clipSize;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue