GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

[BUG] Steam Boiler only Explodes when the Overvoltage Explosion config is on

Quarri6343 opened this issue ยท 2 comments

commented

Describe the bug
following codes shows the steam boiler explosion is handled by the machines.doExplosions config
since steam boiler contains no power, it needs to be fixed (I'm fixing it!)

if (this.hasNoWater && hasDrainedWater) {
doExplosion(2.0f);

public void doExplosion(float explosionPower) {
getWorld().setBlockToAir(getPos());
getWorld().createExplosion(null, getPos().getX() + 0.5, getPos().getY() + 0.5, getPos().getZ() + 0.5,
explosionPower, ConfigHolder.machines.doExplosions);
}

Versions
GTCEu: 2.2.3

Setup
dev env

commented

No that's intended.
What is wrong here is the description of the doExplosion config "Whether machines should explode when overloaded with power.". It should be any explosion, and that includes the boiler.

commented

I see
thanks