mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Added Clear Sudo
This commit is contained in:
@@ -71,6 +71,10 @@ function get_sudo_info(string)
|
||||
if string then return 'At game tick: '..game.tick..' Queue Lenth: '..#global.sudo.commands..' Number of temp vars: '..lenth
|
||||
else return {tick=game.tick,commands=#global.sudo.commands,temp_varibles=#global.sudo.temp_varibles} end
|
||||
end
|
||||
-- stops all sudo commands
|
||||
function clear_sudo()
|
||||
global.sudo = {commands={},temp_varibles={}}
|
||||
end
|
||||
--sudo main loop
|
||||
Event.register(defines.events.on_tick, function(event)
|
||||
-- runs the commands in sudo
|
||||
|
||||
Reference in New Issue
Block a user