mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-04 13:23:54 -04:00
Fixed usage of shallowCopy for entity:getComponents
This commit is contained in:
parent
d6bd0de564
commit
ef6ef69316
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ end
|
|||
-- Use Entity:give/ensure/remove instead
|
||||
-- @treturn table Table of all Components the Entity has
|
||||
function Entity:getComponents()
|
||||
local components = Utils.shallowCopy(self)
|
||||
local components = Utils.shallowCopy(self, {})
|
||||
components.__world = nil
|
||||
components.__isEntity = nil
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue