Skip to content

Commit c5299c7

Browse files
authored
Merge pull request #905 from oryxel1/master
Fixed incorrect icon color reading in tracked waypoint packet.
2 parents 9283524 + c3906f2 commit c5299c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/clientbound/level/ClientboundTrackedWaypointPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public ClientboundTrackedWaypointPacket(ByteBuf in) {
3737

3838
Key style = MinecraftTypes.readResourceLocation(in);
3939
Optional<Integer> rgbColor = Optional.ofNullable(MinecraftTypes.readNullable(in, buf -> {
40-
return 0xFF << 24 | (buf.readByte() & 0xFF) << 16 | (buf.readByte() & 0xFF) << 8 | buf.readByte();
40+
return 0xFF << 24 | (buf.readByte() & 0xFF) << 16 | (buf.readByte() & 0xFF) << 8 | (buf.readByte() & 0xFF);
4141
}));
4242
TrackedWaypoint.Icon icon = new TrackedWaypoint.Icon(style, rgbColor);
4343

0 commit comments

Comments
 (0)