Skip to content

Commit

Permalink
Update Protocolr1_7_2_5tor1_6_4.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Outfit8TSB authored Dec 31, 2024
1 parent 3a845d3 commit 9e1bddc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public void register() {
@Override
public void register() {
map(Types.INT); // entity id
map(Types1_6_4.ENTITY_DATA_LIST, Types1_7_6.ENTITY_DATA_LIST); // entity data
map(Types1_7_6.ENTITY_DATA_LIST, Types1_6_4.ENTITY_DATA_LIST); // entity data
handler(wrapper -> rewriteEntityData(wrapper.user(), wrapper.get(Types1_7_6.ENTITY_DATA_LIST, 0)));
}
});
Expand Down Expand Up @@ -566,7 +566,7 @@ public void register() {
wrapper.send(Protocolr1_7_2_5tor1_6_4.class);
startRain.send(Protocolr1_7_2_5tor1_6_4.class);
wrapper.cancel();
} else if (gameState == 2) {
} else if (gameState == 2) w
final PacketWrapper stopRain = PacketWrapper.create(ClientboundPackets1_7_2.GAME_EVENT, wrapper.user());
stopRain.write(Types.UNSIGNED_BYTE, (short) 7);
stopRain.write(Types.FLOAT, 0.0f);
Expand Down Expand Up @@ -856,7 +856,7 @@ public void register() {
wrapper.write(Types1_6_4.STRING, ip); // hostname
wrapper.write(Types.INT, port); // port
});
this.registerServerboundTransition(ServerboundStatusPackets.PING_REQUEST, ServerboundPackets1_6_4.SERVER_PING, null, wrapper -> {
this.registerServerboundTransition(ServerboundPackets1_6_4.SERVER_PING, null, wrapper -> {
wrapper.cancel();
final PacketWrapper pong = PacketWrapper.create(ClientboundStatusPackets.PONG_RESPONSE, wrapper.user());
pong.write(Types.LONG, wrapper.read(Types.LONG)); // start time
Expand All @@ -868,8 +868,8 @@ public void register() {
final String name = wrapper.read(Types.STRING); // user name

wrapper.write(Types.UNSIGNED_BYTE, (short) wrapper.user().getProtocolInfo().serverProtocolVersion().getVersion()); // protocol id
wrapper.write(Types1_6_4.STRING, name); // user name
wrapper.write(Types1_6_4.STRING, handshakeStorage.getHostname()); // hostname
wrapper.write(Types.STRING, name); // user name
wrapper.write(Types.STRING, handshakeStorage.getHostname()); // hostname
wrapper.write(Types.INT, handshakeStorage.getPort()); // port

final ProtocolInfo info = wrapper.user().getProtocolInfo();
Expand All @@ -885,7 +885,7 @@ public void register() {
this.registerServerbound(ServerboundPackets1_6_4.CHAT, new PacketHandlers() {
@Override
public void register() {
map(Types.STRING, Types1_6_4.STRING); // message
map(Types1_6_4.STRING, Types.STRING); // message
}
});
this.registerServerbound(ServerboundPackets1_6_4.INTERACT, new PacketHandlers() {
Expand Down

0 comments on commit 9e1bddc

Please sign in to comment.