From 9b95ebbdb8cb3c8a24334cbdbce31583fa122958 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Tue, 21 May 2024 20:50:51 -0400 Subject: [PATCH] Hotfix item class --- src/main/java/me/pikamug/localelib/LocaleManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/pikamug/localelib/LocaleManager.java b/src/main/java/me/pikamug/localelib/LocaleManager.java index c2579f8..0bbf6dc 100644 --- a/src/main/java/me/pikamug/localelib/LocaleManager.java +++ b/src/main/java/me/pikamug/localelib/LocaleManager.java @@ -84,6 +84,7 @@ public LocaleManager() { if (packageName.equals("org.bukkit.craftbukkit")) { // Bukkit version is 1.20.5+ craftMagicNumbers = Class.forName("org.bukkit.craftbukkit.util.CraftMagicNumbers"); + itemClazz = Class.forName("net.minecraft.world.item.Item"); } else { final String version = packageName.split("\\.")[3]; craftMagicNumbers = Class.forName("org.bukkit.craftbukkit.{v}.util.CraftMagicNumbers".replace("{v}",