From fa071a53e7d96cd9010da749e98ccc0594839ea5 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 590bcf3..ed9fe9d 100755 --- a/src/main/java/net/coreprotect/utility/Util.java +++ b/src/main/java/net/coreprotect/utility/Util.java @@ -1035,6 +1035,10 @@ public class Util extends Queue { name = BukkitAdapter.ADAPTER.parseLegacyName(name); material = Material.getMaterial(name); + + if (material == null) { + material = Material.getMaterial(name, true); + } } return material;