mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +01:00
Potentially fix map packet
This commit is contained in:
parent
27f30fa394
commit
051fbcb34b
@ -38,6 +38,7 @@ public class MapDataPacket implements ComponentHoldingServerPacket {
|
|||||||
writer.writeBoolean(locked);
|
writer.writeBoolean(locked);
|
||||||
writer.writeBoolean(trackingPosition);
|
writer.writeBoolean(trackingPosition);
|
||||||
|
|
||||||
|
if (trackingPosition) {
|
||||||
if (icons != null && icons.length > 0) {
|
if (icons != null && icons.length > 0) {
|
||||||
writer.writeVarInt(icons.length);
|
writer.writeVarInt(icons.length);
|
||||||
for (Icon icon : icons) {
|
for (Icon icon : icons) {
|
||||||
@ -46,6 +47,7 @@ public class MapDataPacket implements ComponentHoldingServerPacket {
|
|||||||
} else {
|
} else {
|
||||||
writer.writeVarInt(0);
|
writer.writeVarInt(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
writer.writeByte((byte) columns);
|
writer.writeByte((byte) columns);
|
||||||
if (columns <= 0) {
|
if (columns <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user