Skip to content

Commit

Permalink
Fix typo in ServerboundDiagnosticsPacket (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaooot authored Sep 8, 2024
1 parent 2f0bcfa commit 8f05885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ServerboundDiagnosticsSerializer_v712 implements BedrockPacketSeria

@Override
public void serialize(ByteBuf buffer, BedrockCodecHelper helper, ServerboundDiagnosticsPacket packet) {
buffer.writeFloatLE(packet.getAvgTps());
buffer.writeFloatLE(packet.getAvgFps());
buffer.writeFloatLE(packet.getAvgServerSimTickTimeMS());
buffer.writeFloatLE(packet.getAvgClientSimTickTimeMS());
buffer.writeFloatLE(packet.getAvgBeginFrameTimeMS());
Expand All @@ -23,7 +23,7 @@ public void serialize(ByteBuf buffer, BedrockCodecHelper helper, ServerboundDiag

@Override
public void deserialize(ByteBuf buffer, BedrockCodecHelper helper, ServerboundDiagnosticsPacket packet) {
packet.setAvgTps(buffer.readFloatLE());
packet.setAvgFps(buffer.readFloatLE());
packet.setAvgServerSimTickTimeMS(buffer.readFloatLE());
packet.setAvgClientSimTickTimeMS(buffer.readFloatLE());
packet.setAvgBeginFrameTimeMS(buffer.readFloatLE());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@EqualsAndHashCode(doNotUseGetters = true)
@ToString(doNotUseGetters = true)
public class ServerboundDiagnosticsPacket implements BedrockPacket{
private float avgTps;
private float avgFps;
private float avgServerSimTickTimeMS;
private float avgClientSimTickTimeMS;
private float avgBeginFrameTimeMS;
Expand Down

0 comments on commit 8f05885

Please sign in to comment.