Anonymous

Module:Constants: Difference between revisions

From Melvor Idle
getTriangleAttribute: Fix error handling
No edit summary
(getTriangleAttribute: Fix error handling)
Line 617: Line 617:
local mode = GameData.getEntityByName('gamemodes', modeName)
local mode = GameData.getEntityByName('gamemodes', modeName)
if mode == nil then
if mode == nil then
error("Invalid gamemode '" .. mode .. "'", 2)
error("Invalid gamemode '" .. modeName .. "'", 2)
end
end