Skip to content

Commit 5591206

Browse files
committed
upd2
1 parent 9da2bf5 commit 5591206

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/MapDataPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public boolean handle(MinecraftSessionHandler handler) {
7676
@Override
7777
public int encodeSizeHint(ProtocolUtils.Direction direction, ProtocolVersion version) {
7878
return version.noGreaterThan(ProtocolVersion.MINECRAFT_1_7_6)
79-
? 5 + 2 + Byte.BYTES * 3 + 1 + MapData.MAP_DIM_SIZE
79+
? 5 + 2 + Byte.BYTES * 3 + MapData.MAP_DIM_SIZE
8080
: 5 + Byte.BYTES * 8 + 5 + MapData.MAP_SIZE;
8181
}
8282
}

plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/SetChunkCacheCenterPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public boolean handle(MinecraftSessionHandler handler) {
4343

4444
@Override
4545
public int encodeSizeHint(ProtocolUtils.Direction direction, ProtocolVersion version) {
46-
return 10;
46+
return 5 + 5;
4747
}
4848
}

0 commit comments

Comments
 (0)