Skip to content

Commit

Permalink
Hotfix item class
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaMug committed May 22, 2024
1 parent 116be4c commit 9b95ebb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/me/pikamug/localelib/LocaleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 9b95ebb

Please sign in to comment.