From a98966b2094b6fd258c13fd126b74089c3ad43b7 Mon Sep 17 00:00:00 2001 From: Corentin Cailleaud Date: Thu, 4 Jan 2024 10:32:11 +0400 Subject: [PATCH] fix wrong parameters --- lua/modules/world_editor_common.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/modules/world_editor_common.lua b/lua/modules/world_editor_common.lua index faeb934c6..89bd54cad 100644 --- a/lua/modules/world_editor_common.lua +++ b/lua/modules/world_editor_common.lua @@ -648,6 +648,7 @@ local loadObject = function(obj, objInfo, config) obj.Position = objInfo.Position or Number3(0, 0, 0) obj.Rotation = objInfo.Rotation or Rotation(0, 0, 0) obj.Scale = scale + obj.uuid = objInfo.uuid obj.CollidesWithGroups = Map.CollisionGroups + Player.CollisionGroups obj.Name = objInfo.Name or objInfo.fullname end @@ -725,7 +726,7 @@ common.loadWorld = function(mapBase64, config) local onLoad = function(obj, data) data.currentlyEditedBy = nil loadObject(obj, data, config) - config.onLoad(obj) + config.onLoad(obj, data) end local massLoadingConfig = { onDone = config.onDone,