mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-10 00:22:02 +01:00
Fix version check
This commit is contained in:
parent
65e03a58ae
commit
0b57aaff21
@ -101,7 +101,7 @@ public class ItemUtils {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user