[skip ci] Incomplete
This commit is contained in:
@@ -191,7 +191,7 @@ public class DhApi
|
||||
* Returns the network protocol version.
|
||||
* @since API 1.0.0
|
||||
*/
|
||||
public static int getNetworkProtocolVersion() { return ModInfo.PROTOCOL_VERSION; }
|
||||
public static int getNetworkProtocolVersion() { return ModInfo.OLD_PROTOCOL_VERSION; }
|
||||
|
||||
|
||||
// methods //
|
||||
@@ -202,4 +202,4 @@ public class DhApi
|
||||
*/
|
||||
public static boolean isDhThread() { return Thread.currentThread().getName().startsWith(ModInfo.THREAD_NAME_PREFIX); }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -32,10 +32,7 @@ public final class ModInfo
|
||||
|
||||
// region Protocol versions
|
||||
// Incremented every time any packets are added, changed or removed, with a few exceptions.
|
||||
/** Netty protocol version. */
|
||||
public static final int PROTOCOL_VERSION = 3;
|
||||
/** Plugin channel protocol version. */
|
||||
public static final int PLUGIN_PROTOCOL_VERSION = 1;
|
||||
public static final int PROTOCOL_VERSION = 1;
|
||||
public static final String PLUGIN_CHANNEL_PATH = "plugin_channel";
|
||||
public static final String WRAPPER_PACKET_PATH = "wrapper";
|
||||
// endregion
|
||||
|
||||
Reference in New Issue
Block a user