From 2f7720d3bb0a5271811f3f519831385f72a73351 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 11:33:21 +0200 Subject: [PATCH] fix(world3D): use the right variable name for creationID --- sonic-radiance.love/core/modules/world/world3D.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-radiance.love/core/modules/world/world3D.lua b/sonic-radiance.love/core/modules/world/world3D.lua index ca2eb16..86388d9 100644 --- a/sonic-radiance.love/core/modules/world/world3D.lua +++ b/sonic-radiance.love/core/modules/world/world3D.lua @@ -203,7 +203,7 @@ function World3D:zSortItems(items) local _, aY, aZ, _, aH, aD = self.bodies:getCube(itemA.mainHitbox) aDepth = itemA.depth - aID = itemA.id + aID = itemA.creationID aType = itemA.type aZ = math.ceil(aZ) aY = math.ceil(aY) @@ -211,7 +211,7 @@ function World3D:zSortItems(items) for _, itemB in ipairs(overlapping) do local _, bY, bZ, _, bH, bD = self.bodies:getCube(itemB.mainHitbox) bDepth = itemB.depth - bID = itemB.id + bID = itemB.creationID bType = itemB.type bZ = math.ceil(bZ) bY = math.ceil(bY)