Skip to content

Commit c3906f2

Browse files
committed
Fixed icon color reading in tracked waypoint packet.
1 parent 9283524 commit c3906f2

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)