Skip to content

Commit 272e101

Browse files
committed
ClientboundMapItemDataPacket: fixed checking the same flag twice during scale decoding
1 parent 55dbedb commit 272e101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ClientboundMapItemDataPacket.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function decodePayload(PacketSerializer $in) : void{
6464
}
6565
}
6666

67-
if(($this->type & (self::BITFLAG_DECORATION_UPDATE | self::BITFLAG_DECORATION_UPDATE | self::BITFLAG_TEXTURE_UPDATE)) !== 0){ //Decoration bitflag or colour bitflag
67+
if(($this->type & (self::BITFLAG_MAP_CREATION | self::BITFLAG_DECORATION_UPDATE | self::BITFLAG_TEXTURE_UPDATE)) !== 0){ //Decoration bitflag or colour bitflag
6868
$this->scale = $in->getByte();
6969
}
7070

0 commit comments

Comments
 (0)