Skip to content

Commit

Permalink
Fix blocks registry not finding block (#462)
Browse files Browse the repository at this point in the history
return the block name and not empty string
  • Loading branch information
Tides authored Dec 11, 2024
1 parent 58af7f5 commit 24a54c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Obsidian/Registries/BlocksRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ public static IBlock Get(Material material, IBlockState? state = null)
}

private static string GetSanitizedName(string value) =>
illegalBlockNames.Contains(value) ? $"{value}Block" : string.Empty;
illegalBlockNames.Contains(value) ? $"{value}Block" : value;
}

0 comments on commit 24a54c6

Please sign in to comment.