parent
ca721ec8ac
commit
b167c45530
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ function World3D:zSortItems(items)
|
||||||
|
|
||||||
local _, aY, aZ, _, aH, aD = self.bodies:getCube(itemA.mainHitbox)
|
local _, aY, aZ, _, aH, aD = self.bodies:getCube(itemA.mainHitbox)
|
||||||
aDepth = itemA.depth
|
aDepth = itemA.depth
|
||||||
aID = itemA.id
|
aID = itemA.creationID
|
||||||
aType = itemA.type
|
aType = itemA.type
|
||||||
aZ = math.ceil(aZ)
|
aZ = math.ceil(aZ)
|
||||||
aY = math.ceil(aY)
|
aY = math.ceil(aY)
|
||||||
|
@ -211,7 +211,7 @@ function World3D:zSortItems(items)
|
||||||
for _, itemB in ipairs(overlapping) do
|
for _, itemB in ipairs(overlapping) do
|
||||||
local _, bY, bZ, _, bH, bD = self.bodies:getCube(itemB.mainHitbox)
|
local _, bY, bZ, _, bH, bD = self.bodies:getCube(itemB.mainHitbox)
|
||||||
bDepth = itemB.depth
|
bDepth = itemB.depth
|
||||||
bID = itemB.id
|
bID = itemB.creationID
|
||||||
bType = itemB.type
|
bType = itemB.type
|
||||||
bZ = math.ceil(bZ)
|
bZ = math.ceil(bZ)
|
||||||
bY = math.ceil(bY)
|
bY = math.ceil(bY)
|
||||||
|
|
Loading…
Reference in a new issue