File tree Expand file tree Collapse file tree 7 files changed +13
-5
lines changed
java/cn/nukkit/network/protocol Expand file tree Collapse file tree 7 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ public void encode() {
181181 this .putLFloat (this .bodyYaw == -1 ? this .yaw : this .bodyYaw );
182182 this .putAttributeList (this .attributes );
183183 this .put (Binary .writeMetadata (this .metadata ));
184+ this .putUnsignedVarInt (0 ); // Entity properties int
185+ this .putUnsignedVarInt (0 ); // Entity properties float
184186 this .putUnsignedVarInt (this .links .length );
185187 for (EntityLink link : links ) {
186188 putEntityLink (link );
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ public void encode() {
6262 this .putSlot (this .item );
6363 this .putVarInt (this .gameType );
6464 this .put (Binary .writeMetadata (this .metadata ));
65+ this .putUnsignedVarInt (0 ); // Entity properties int
66+ this .putUnsignedVarInt (0 ); // Entity properties float
6567 this .putLLong (entityUniqueId );
6668 this .putUnsignedVarInt (0 ); // playerPermission
6769 this .putUnsignedVarInt (0 ); // commandPermission
Original file line number Diff line number Diff line change @@ -452,7 +452,8 @@ public class LevelSoundEventPacket extends DataPacket {
452452 public static final int SOUND_RECORD_5 = 439 ;
453453 public static final int SOUND_CONVERT_TO_FROG = 440 ;
454454 public static final int SOUND_RECORD_PLAYING = 441 ;
455- public static final int SOUND_UNDEFINED = 442 ;
455+ public static final int SOUND_ENCHANTING_TABLE_USE = 442 ;
456+ public static final int SOUND_UNDEFINED = 443 ;
456457
457458 public int sound ;
458459 public float x ;
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ public interface ProtocolInfo {
1717 /**
1818 * Actual Minecraft: PE protocol version
1919 */
20- int CURRENT_PROTOCOL = dynamic (554 );
20+ int CURRENT_PROTOCOL = dynamic (557 );
2121
2222 List <Integer > SUPPORTED_PROTOCOLS = Ints .asList (CURRENT_PROTOCOL );
2323
24- String MINECRAFT_VERSION = dynamic ("v1.19.30 " );
25- String MINECRAFT_VERSION_NETWORK = dynamic ("1.19.30 " );
24+ String MINECRAFT_VERSION = dynamic ("v1.19.40 " );
25+ String MINECRAFT_VERSION_NETWORK = dynamic ("1.19.40 " );
2626
2727 byte LOGIN_PACKET = 0x01 ;
2828 byte PLAY_STATUS_PACKET = 0x02 ;
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ public void encode() {
3131 this .reset ();
3232 this .putEntityRuntimeId (this .eid );
3333 this .put (Binary .writeMetadata (this .metadata ));
34+ this .putUnsignedVarInt (0 ); // Entity properties int
35+ this .putUnsignedVarInt (0 ); // Entity properties float
3436 this .putUnsignedVarLong (this .frame );
3537 }
3638}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public enum Type {
1717 CACHE ,
1818 BASE ,
1919 SPECTATOR ,
20- COMMANDS
20+ COMMANDS ,
21+ EDITOR
2122 }
2223}
You can’t perform that action at this time.
0 commit comments