Added machine name to disabled & enabled LUA events
This commit is contained in:
parent
c7fd47ff06
commit
1011d7b871
1 changed files with 2 additions and 2 deletions
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue