Skip to content

Commit

Permalink
Condition mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Jan 24, 2025
1 parent a6a042e commit 553cae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared/StaticBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void SortTiles(ref StaticTiles[] tiledata)
continue;
foreach (var tile in staticTiles)
{
if(tiledata.Length < tile.Id)
if (tile.Id < tiledata.Length)
tile.UpdatePriority(tiledata[tile.Id]);
else
{
Expand Down

0 comments on commit 553cae0

Please sign in to comment.