mirror of
https://github.com/lune-org/lune.git
synced 2025-04-04 10:30:54 +01:00
Fix luau analyze failures
This commit is contained in:
parent
beb297d6c9
commit
486ded3974
2 changed files with 4 additions and 4 deletions
|
@ -43,12 +43,12 @@ do
|
|||
|
||||
local folder = Instance.new("Folder")
|
||||
|
||||
local objectValue = Instance.new("ObjectValue")
|
||||
local objectValue = Instance.new("ObjectValue") :: any
|
||||
objectValue.Value = particleEmitter
|
||||
objectValue.Parent = folder
|
||||
|
||||
local serialized = roblox.serializeModel({ part, folder })
|
||||
local deserialized = roblox.deserializeModel(serialized)
|
||||
local deserialized = roblox.deserializeModel(serialized) :: any
|
||||
|
||||
assert(deserialized[2].ObjectValue.Value == deserialized[1].ParticleEmitter)
|
||||
end
|
||||
|
|
|
@ -45,12 +45,12 @@ do
|
|||
local part = Instance.new("Part")
|
||||
part.Parent = ReplicatedStorage
|
||||
|
||||
local objectValue = Instance.new("ObjectValue")
|
||||
local objectValue = Instance.new("ObjectValue") :: any
|
||||
objectValue.Value = part
|
||||
objectValue.Parent = Workspace
|
||||
|
||||
local serialized = roblox.serializePlace(game)
|
||||
local deserialized = roblox.deserializePlace(serialized)
|
||||
local deserialized = roblox.deserializePlace(serialized) :: any
|
||||
|
||||
assert(deserialized.Workspace.ObjectValue.Value == deserialized.ReplicatedStorage.Part)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue