Fixed infinite place distance, impact meltdown
This commit is contained in:
@@ -62,6 +62,8 @@ public interface BuilderTrait extends Entity, TeamTrait{
|
||||
|
||||
BuildRequest current = buildRequest();
|
||||
|
||||
if(dst(current.tile()) > finalPlaceDst) return;
|
||||
|
||||
Tile tile = world.tile(current.x, current.y);
|
||||
|
||||
if(!(tile.block() instanceof BuildBlock)){
|
||||
|
||||
@@ -133,7 +133,7 @@ public class ImpactReactor extends PowerGenerator{
|
||||
|
||||
FusionReactorEntity entity = tile.entity();
|
||||
|
||||
if(entity.warmup < 0.4f) return;
|
||||
if(entity.warmup < 0.4f || !state.rules.reactorExplosions) return;
|
||||
|
||||
Sounds.explosionbig.at(tile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user