'fixed' tests
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package mindustry.world.blocks.power;
|
||||
|
||||
import arc.*;
|
||||
import arc.func.*;
|
||||
import arc.graphics.*;
|
||||
import arc.math.*;
|
||||
@@ -145,10 +144,8 @@ public class ItemLiquidGenerator extends PowerGenerator{
|
||||
|
||||
if(randomlyExplode && state.rules.reactorExplosions && Mathf.chance(delta() * 0.06 * Mathf.clamp(explosiveness - 0.5f))){
|
||||
//this block is run last so that in the event of a block destruction, no code relies on the block type
|
||||
Core.app.post(() -> {
|
||||
damage(Mathf.random(11f));
|
||||
explodeEffect.at(x + Mathf.range(size * tilesize / 2f), y + Mathf.range(size * tilesize / 2f));
|
||||
});
|
||||
damage(Mathf.random(11f));
|
||||
explodeEffect.at(x + Mathf.range(size * tilesize / 2f), y + Mathf.range(size * tilesize / 2f));
|
||||
}
|
||||
}else{
|
||||
productionEfficiency = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user