From 79d21baa5bc8ae2a035d2a68f37ced171d97bf0a Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 16 Jun 2019 21:00:20 +0200 Subject: [PATCH] Improved LUA event spam when accelerator is disabled --- .../warpdrive/block/atomic/TileEntityAcceleratorCore.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cr0s/warpdrive/block/atomic/TileEntityAcceleratorCore.java b/src/main/java/cr0s/warpdrive/block/atomic/TileEntityAcceleratorCore.java index 746b0a79..e4a8147d 100644 --- a/src/main/java/cr0s/warpdrive/block/atomic/TileEntityAcceleratorCore.java +++ b/src/main/java/cr0s/warpdrive/block/atomic/TileEntityAcceleratorCore.java @@ -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"); + } } }