mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-24 21:48:25 +07:00
Fixed crash
This commit is contained in:
parent
3e3c88bd26
commit
95fa62f572
@ -12,7 +12,7 @@ public class RailBulletType extends BulletType{
|
||||
static boolean any = false;
|
||||
|
||||
public Effect pierceEffect = Fx.hitBulletSmall, pointEffect = Fx.none, lineEffect = Fx.none;
|
||||
public Effect endEffect;
|
||||
public Effect endEffect = Fx.none;
|
||||
/** Multiplier of damage decreased per health pierced. */
|
||||
public float pierceDamageFactor = 1f;
|
||||
|
||||
@ -79,7 +79,7 @@ public class RailBulletType extends BulletType{
|
||||
}
|
||||
}
|
||||
|
||||
if(!any){
|
||||
if(!any && endEffect != Fx.none){
|
||||
endEffect.at(b.x + nor.x * resultLen, b.y + nor.y * resultLen, b.rotation(), hitColor);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user