Skip to content

Commit

Permalink
ClientboundMapItemDataPacket: fixed checking the same flag twice duri…
Browse files Browse the repository at this point in the history
…ng scale decoding
  • Loading branch information
dktapps committed Nov 30, 2022
1 parent 55dbedb commit 272e101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClientboundMapItemDataPacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function decodePayload(PacketSerializer $in) : void{
}
}

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

Expand Down

0 comments on commit 272e101

Please sign in to comment.