mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fix PA dipole max speed penalty applying to particles that aren't turning
This commit is contained in:
parent
bff3e15fb3
commit
f9baf87289
@ -77,10 +77,10 @@ public class TileEntityPADipole extends TileEntityCooledBase implements IGUIProv
|
|||||||
if(isInline) mult = 1;
|
if(isInline) mult = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isCool()) particle.crash(PAState.CRASH_NOCOOL);
|
if(!isCool()) particle.crash(PAState.CRASH_NOCOOL);
|
||||||
if(this.power < this.usage * mult) particle.crash(PAState.CRASH_NOPOWER);
|
if(this.power < usage * mult) particle.crash(PAState.CRASH_NOPOWER);
|
||||||
if(type == null) particle.crash(PAState.CRASH_NOCOIL);
|
if(type == null) particle.crash(PAState.CRASH_NOCOIL);
|
||||||
if(type != null && type.diMax < particle.momentum) particle.crash(PAState.CRASH_OVERSPEED);
|
if(type != null && type.diMax < particle.momentum && !isInline) particle.crash(PAState.CRASH_OVERSPEED);
|
||||||
|
|
||||||
if(particle.invalid) return;
|
if(particle.invalid) return;
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ public class TileEntityPADipole extends TileEntityCooledBase implements IGUIProv
|
|||||||
particle.resetDistance();
|
particle.resetDistance();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.power -= this.usage * mult;
|
this.power -= usage * mult;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user