From ef6ef6931685d38403a0ba212c42ba3a0a02771a Mon Sep 17 00:00:00 2001 From: Brandon Blanker Lim-it Date: Sun, 29 Aug 2021 12:32:37 +0800 Subject: [PATCH] Fixed usage of shallowCopy for entity:getComponents --- concord/entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concord/entity.lua b/concord/entity.lua index 120146f..13665e4 100644 --- a/concord/entity.lua +++ b/concord/entity.lua @@ -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