Improved LUA event spam when accelerator is disabled

This commit is contained in:
Unknown 2019-06-16 21:00:20 +02:00 committed by unknown
parent 91050d2b98
commit 79d21baa5b

View file

@ -695,7 +695,9 @@ public class TileEntityAcceleratorCore extends TileEntityAbstractEnergyCoreOrCon
legacy_isOn = false;
if (isLeaking) {
temperatureCurrent_K = ACCELERATOR_AMBIENT_TEMPERATURE_K;
sendEvent("acceleratorCoolingReset");
if (isEnabled) {
sendEvent("acceleratorCoolingReset");
}
}
}