Fix Descriptors not being populated correctly
This commit is contained in:
@@ -20,7 +20,7 @@ AddTableToGlobal(dofile(path .. "/Lua/CompatibilityLib.lua"))
|
|||||||
|
|
||||||
dofile(path .. "/Lua/DefaultHook.lua")
|
dofile(path .. "/Lua/DefaultHook.lua")
|
||||||
|
|
||||||
Descriptors = LuaSetup.LuaUserData
|
Descriptors = LuaUserData
|
||||||
|
|
||||||
dofile(path .. "/Lua/DefaultLib/Utils/Math.lua")
|
dofile(path .. "/Lua/DefaultLib/Utils/Math.lua")
|
||||||
dofile(path .. "/Lua/DefaultLib/Utils/String.lua")
|
dofile(path .. "/Lua/DefaultLib/Utils/String.lua")
|
||||||
|
|||||||
@@ -87,7 +87,10 @@ public class LuaUserDataService : ILuaUserDataService
|
|||||||
throw new ScriptRuntimeException($"tried to register a type that doesn't exist: {typeName}.");
|
throw new ScriptRuntimeException($"tried to register a type that doesn't exist: {typeName}.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return UserData.RegisterType(type);
|
var descriptor = UserData.RegisterType(type);
|
||||||
|
descriptors.TryAdd(typeName, descriptor);
|
||||||
|
|
||||||
|
return descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RegisterExtensionType(string typeName)
|
public void RegisterExtensionType(string typeName)
|
||||||
|
|||||||
Reference in New Issue
Block a user