Skip to content

Commit

Permalink
Add back sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
memorycode committed Nov 16, 2024
1 parent 5dce139 commit c77d59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/Component.luau
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ local function assertValidComponent(value, position)
assertValidType(value, position)

local metatable = getmetatable(value)

if getmetatable(metatable) ~= nil and getmetatable(metatable)[DIAGNOSTIC_COMPONENT_MARKER] then
error(
string.format(
Expand Down
4 changes: 2 additions & 2 deletions lib/World.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1250,10 +1250,10 @@ end
@param ... ComponentInstance -- The component values to insert
]=]
function World:insert(id, ...)
--assertWorldOperationIsValid(self, id, ...)
assertWorldOperationIsValid(self, id, ...)

local componentInstances = { ... }
--assertValidComponentInstances(componentInstances)
assertValidComponentInstances(componentInstances)

bufferCommand(self, { type = "insert", entityId = id, componentInstances = componentInstances })
end
Expand Down

0 comments on commit c77d59a

Please sign in to comment.