Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ceze88 committed Jul 3, 2024
1 parent 65e03a5 commit 0b57aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/main/java/com/craftaro/core/utils/ItemUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static String itemName(Material mat) {
methodAsBukkitCopy = clazzCraftItemStack.getMethod("asBukkitCopy", clazzItemStack);
methodAsNMSCopy = MethodMapping.CB_ITEM_STACK__AS_NMS_COPY.getMethod(clazzCraftItemStack);

if (ServerVersion.isServerVersion(ServerVersion.V1_20)) {
if (ServerVersion.isServerVersionAbove(ServerVersion.V1_20)) {
//Do nothing
} else if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_19)) {
Class<?> clazzRandomSource = ClassMapping.RANDOM_SOURCE.getClazz();
Expand Down

0 comments on commit 0b57aaf

Please sign in to comment.