Improved log message upon reactor explosion

This commit is contained in:
Unknown 2020-02-02 13:32:35 +01:00
parent c4806ef1c1
commit 08adaee6dc

View file

@ -230,8 +230,13 @@ public class TileEntityEnanReactorLaser extends TileEntityAbstractLaser implemen
}
if (!laserMedium_consumeExactly(energy, false)) {
WarpDrive.logger.warn(String.format("ReactorLaser %s on %s side doesn't have enough energy %d",
Commons.format(world, pos), reactorFace.name, energy));
WarpDrive.logger.warn(String.format("ReactorLaser %s on %s side doesn't have enough energy %d/%d while core can output %d/%d",
Commons.format(world, pos),
reactorFace.name,
laserMedium_getEnergyStored(true),
energy,
reactorCore.energy_getPotentialOutput(),
reactorCore.energy_getEnergyStored() ));
return;
}