get working in 2.0

This commit is contained in:
Brevven 2025-01-07 04:45:50 -08:00
parent 00cc9df72c
commit d0aaba1d07
6 changed files with 68 additions and 60 deletions

View file

@ -1,3 +1,7 @@
local util = require("control-util")
script.on_configuration_changed(util.ore_fix)
util.add_regenerate_command_handler()
script.on_event( defines.events.on_console_chat, function(event)
-- refresh recipes, in case of settings change
if event.message and event.message == "ZirconiumRecipes" and (not event.player_index or not game.players[event.player_index] or game.players[event.player_index].admin) then