Skip to content

Commit

Permalink
Put paper adapter behind 1.19.4 gate
Browse files Browse the repository at this point in the history
The adapter is using adventure which was not bundled into Paper until 1.19.4
so to support it, we can only use this version or higher.
  • Loading branch information
WalshyDev committed Sep 9, 2024
1 parent 5140054 commit 1b94fb1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public interface ItemNameAdapter {
return new ItemNameAdapterMockBukkit();
}

if (PaperLib.isPaper()) {
MinecraftVersion version = MinecraftVersion.get();

if (version.isAtLeast(1, 20, 4) && PaperLib.isPaper()) {
return new ItemNameAdapterPaper();
}

MinecraftVersion version = MinecraftVersion.get();

if (version.isAtLeast(1, 20, 5)) {
return new ItemNameAdapter20v5();
} else if (version.isAtLeast(1, 20)) {
Expand Down

0 comments on commit 1b94fb1

Please sign in to comment.