diff --git a/FallUnity/Assets/IsoSorting/IsoHandler.cs b/FallUnity/Assets/IsoSorting/IsoHandler.cs index be48c44..eb22685 100644 --- a/FallUnity/Assets/IsoSorting/IsoHandler.cs +++ b/FallUnity/Assets/IsoSorting/IsoHandler.cs @@ -147,14 +147,7 @@ bool placed = false; for (var j = 0; j < chunk.Count; j++) { - if (item == chunk[j]) - { - placed = true; - break; - } - float thisZ = item.CameraSpace.z; - float otherZ = chunk[j].CameraSpace.z; - if (thisZ > otherZ) + if (item.CameraSpace.z > chunk[j].CameraSpace.z) { chunk.Insert(j, item); /*