You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-09-16 09:06:21 +02:00
event_change
This commit is contained in:
20
utils/debug/command.lua
Normal file
20
utils/debug/command.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local DebugView = require 'utils.debug.main_view'
|
||||
|
||||
commands.add_command(
|
||||
'debug',
|
||||
'Opens the debugger',
|
||||
function(_, player)
|
||||
local player = game.player
|
||||
local p
|
||||
if player then
|
||||
p = player.print
|
||||
if not player.admin then
|
||||
p('Only admins can use this command.')
|
||||
return
|
||||
end
|
||||
else
|
||||
p = player.print
|
||||
end
|
||||
DebugView.open_dubug(player)
|
||||
end
|
||||
)
|
Reference in New Issue
Block a user