Added machine name to disabled & enabled LUA events

This commit is contained in:
Unknown 2020-05-08 06:13:27 +02:00
parent c7fd47ff06
commit 1011d7b871

View file

@ -241,10 +241,10 @@ public abstract class TileEntityAbstractMachine extends TileEntityAbstractInterf
}
if (isEnabled && !enableRequest) {
setIsEnabled(false);
sendEvent("disabled");
sendEvent("disabled", name);
} else if (!isEnabled && enableRequest) {
setIsEnabled(true);
sendEvent("enabled");
sendEvent("enabled", name);
}
}
return new Object[] { isEnabled };