[skip ci] Incomplete

This commit is contained in:
s809
2024-05-21 22:54:57 +05:00
parent 40d019d7e8
commit 44205664b5
50 changed files with 535 additions and 1768 deletions
@@ -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