diff --git a/Shared/StaticTile.cs b/Shared/StaticTile.cs index 207269f..ca57f4b 100644 --- a/Shared/StaticTile.cs +++ b/Shared/StaticTile.cs @@ -26,6 +26,8 @@ public StaticTile(ushort id, ushort x, ushort y, sbyte z, ushort hue, StaticBloc LocalX = (byte)(x & 0x7); LocalY = (byte)(y & 0x7); + + PriorityZ = _z; } public StaticTile(BinaryReader reader, StaticBlock? block = null, ushort blockX = 0, ushort blockY = 0) @@ -39,6 +41,8 @@ public StaticTile(BinaryReader reader, StaticBlock? block = null, ushort blockX _x = (ushort)(blockX * 8 + LocalX); _y = (ushort)(blockY * 8 + LocalY); + + PriorityZ = _z; } public StaticBlock? Block