Skip to content

Commit

Permalink
Fixed lookups on legacy data not matching against legacy materials
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed May 7, 2024
1 parent 5426e69 commit 4daaf6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/coreprotect/utility/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,10 @@ public static Material getType(int id) {

name = BukkitAdapter.ADAPTER.parseLegacyName(name);
material = Material.getMaterial(name);

if (material == null) {
material = Material.getMaterial(name, true);
}
}

return material;
Expand Down

0 comments on commit 4daaf6c

Please sign in to comment.