Skip to content

Commit

Permalink
fix wrong parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Cailleaud committed Jan 5, 2024
1 parent b60631c commit a98966b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/modules/world_editor_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a98966b

Please sign in to comment.