mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Merge pull request #859 from plague006/fix/grilled_being_fancy
Fix event
This commit is contained in:
commit
f9437761ec
@ -419,14 +419,13 @@ end
|
||||
function Event.generate_event_name(name)
|
||||
local event_id = generate_event_name()
|
||||
|
||||
defines.events[name] = event_id -- luacheck: ignore 122
|
||||
-- If we're not in debug, we just turn the above function into an alias of script.generate_event_name
|
||||
if _DEBUG then
|
||||
defines.events[name] = event_id -- luacheck: ignore 122
|
||||
end
|
||||
|
||||
return event_id
|
||||
end
|
||||
-- If we're not in debug, we just turn the above function into an alias of script.generate_event_name
|
||||
if not _DEBUG then
|
||||
Event.generate_event_name = generate_event_name
|
||||
end
|
||||
|
||||
local function add_handlers()
|
||||
for event_name, tokens in pairs(token_handlers) do
|
||||
|
Loading…
Reference in New Issue
Block a user