Skip to content

Commit

Permalink
1.20.50
Browse files Browse the repository at this point in the history
  • Loading branch information
PetteriM1 committed Dec 5, 2023
1 parent 6ed56ca commit 97fd530
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cn/nukkit/network/Network.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class Network {
public static final byte CHANNEL_TEXT = 7; //Chat and other text stuff
public static final byte CHANNEL_END = 31;

private Class<? extends DataPacket>[] packetPool = new Class[256];
private Class<? extends DataPacket>[] packetPool = new Class[512];

private final Server server;

Expand Down Expand Up @@ -332,7 +332,7 @@ public void unblockAddress(InetAddress address) {
}

private void registerPackets() {
this.packetPool = new Class[256];
this.packetPool = new Class[512];

this.registerPacket(ProtocolInfo.ADD_ENTITY_PACKET, AddEntityPacket.class);
this.registerPacket(ProtocolInfo.ADD_ITEM_ENTITY_PACKET, AddItemEntityPacket.class);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cn/nukkit/network/protocol/ProtocolInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public interface ProtocolInfo {
* Actual Minecraft: PE protocol version
*/
@SuppressWarnings("UnnecessaryBoxing")
int CURRENT_PROTOCOL = Integer.valueOf("622"); // DO NOT REMOVE BOXING
int CURRENT_PROTOCOL = Integer.valueOf("630"); // DO NOT REMOVE BOXING

List<Integer> SUPPORTED_PROTOCOLS = Ints.asList(CURRENT_PROTOCOL);

String MINECRAFT_VERSION_NETWORK = "1.20.40";
String MINECRAFT_VERSION_NETWORK = "1.20.50";
String MINECRAFT_VERSION = 'v' + MINECRAFT_VERSION_NETWORK;

byte BATCH_PACKET = (byte) 0xff;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/creative_items.json

Large diffs are not rendered by default.

Loading

0 comments on commit 97fd530

Please sign in to comment.