From 6d8390cec9756a0929d98292068a2489c7a22dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20=27MorpheusXAUT=27=20M=C3=BCller?= Date: Fri, 3 May 2019 22:00:45 +0200 Subject: [PATCH] Fixed isTerrainValid validation for terrain types table terrainTypes table index is no longer being compared with SurfaceType enum values, leading to incorrect type inclusions --- mist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mist.lua b/mist.lua index 393c9b3..c9122c9 100644 --- a/mist.lua +++ b/mist.lua @@ -6678,7 +6678,7 @@ do -- group tasks scope elseif type(terrainTypes) == 'table' then -- if its a table it does this check for typeId, typeData in pairs(terrainTypes) do for constId, constData in pairs(land.SurfaceType) do - if string.lower(constId) == string.lower(typeData) or string.lower(constData) == string.lower(typeId) then + if string.lower(constId) == string.lower(typeData) or string.lower(constData) == string.lower(typeData) then table.insert(typeConverted, constId) end end