Skip to content

Commit d29a591

Browse files
small change to moddata check
1 parent 82e9b40 commit d29a591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ModUtil.Main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ local function modDataPlain( obj, key, value, level )
124124
if getmetatable( value ) then
125125
local state
126126
state, value = pcall( function( ) return objectData[ value ] end )
127-
if not state then
127+
if not state or type( value ) ~= "table" then
128128
error( "saved data tables cannot have values with metatables", level )
129129
end
130130
end

0 commit comments

Comments
 (0)