1
0
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:
Matthew 2019-03-04 16:38:52 -05:00 committed by GitHub
commit f9437761ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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