From 272e10197bb1603c0a81075bf5b9dae0d081a6e2 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 30 Nov 2022 16:16:27 +0000 Subject: [PATCH] ClientboundMapItemDataPacket: fixed checking the same flag twice during scale decoding --- src/ClientboundMapItemDataPacket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientboundMapItemDataPacket.php b/src/ClientboundMapItemDataPacket.php index f9d9d507..260cc740 100644 --- a/src/ClientboundMapItemDataPacket.php +++ b/src/ClientboundMapItemDataPacket.php @@ -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(); }