some small pre-spigot-release updates
This commit is contained in:
parent
04620e1014
commit
a24695a76b
|
@ -16,6 +16,7 @@ package com.comphenix.protocol;
|
|||
|
||||
import com.comphenix.protocol.error.BasicErrorReporter;
|
||||
import com.comphenix.protocol.error.ErrorReporter;
|
||||
import com.comphenix.protocol.utility.MinecraftVersion;
|
||||
import java.util.List;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import org.apache.commons.lang.Validate;
|
||||
|
@ -35,12 +36,12 @@ public class ProtocolLibrary {
|
|||
/**
|
||||
* The maximum version ProtocolLib has been tested with.
|
||||
*/
|
||||
public static final String MAXIMUM_MINECRAFT_VERSION = "1.19.1";
|
||||
public static final String MAXIMUM_MINECRAFT_VERSION = MinecraftVersion.LATEST.getVersion();
|
||||
|
||||
/**
|
||||
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.19.1) was released.
|
||||
*/
|
||||
public static final String MINECRAFT_LAST_RELEASE_DATE = "2022-06-28";
|
||||
public static final String MINECRAFT_LAST_RELEASE_DATE = "2022-07-27";
|
||||
|
||||
/**
|
||||
* Plugins that are currently incompatible with ProtocolLib.
|
||||
|
|
|
@ -112,7 +112,7 @@ public final class MinecraftVersion implements Comparable<MinecraftVersion>, Ser
|
|||
/**
|
||||
* The latest release version of minecraft.
|
||||
*/
|
||||
public static final MinecraftVersion LATEST = CAVES_CLIFFS_2;
|
||||
public static final MinecraftVersion LATEST = WILD_UPDATE;
|
||||
|
||||
// used when serializing
|
||||
private static final long serialVersionUID = -8695133558996459770L;
|
||||
|
|
|
@ -5,10 +5,9 @@ public class MinecraftReflectionTestUtil {
|
|||
public static final String PACKAGE_VERSION = "v1_19_R1";
|
||||
public static final String NMS = "net.minecraft";
|
||||
public static final String OBC = "org.bukkit.craftbukkit." + PACKAGE_VERSION;
|
||||
public static final MinecraftVersion CURRENT_VERSION = MinecraftVersion.WILD_UPDATE;
|
||||
|
||||
public static void init() {
|
||||
MinecraftReflection.setMinecraftPackage(NMS, OBC);
|
||||
MinecraftVersion.setCurrentVersion(CURRENT_VERSION);
|
||||
MinecraftVersion.setCurrentVersion(MinecraftVersion.LATEST);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue