From 4daaf6cc02a6b9c103614cd43f0fbd8f8b83f828 Mon Sep 17 00:00:00 2001 From: Intelli Date: Tue, 7 May 2024 14:18:43 -0600 Subject: [PATCH] Fixed lookups on legacy data not matching against legacy materials --- src/main/java/net/coreprotect/utility/Util.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/coreprotect/utility/Util.java b/src/main/java/net/coreprotect/utility/Util.java index d0355be3..0a19b868 100755 --- a/src/main/java/net/coreprotect/utility/Util.java +++ b/src/main/java/net/coreprotect/utility/Util.java @@ -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;