diff --git a/src/pocketmine/entity/projectile/Projectile.php b/src/pocketmine/entity/projectile/Projectile.php index 8e07c63e1..18d76a80c 100644 --- a/src/pocketmine/entity/projectile/Projectile.php +++ b/src/pocketmine/entity/projectile/Projectile.php @@ -86,8 +86,8 @@ abstract class Projectile extends Entity{ break; } - if($this->namedtag->hasTag("blockId", ByteTag::class)){ - $blockId = $this->namedtag->getByte("blockId"); + if($this->namedtag->hasTag("blockId", IntTag::class)){ + $blockId = $this->namedtag->getInt("blockId"); }else{ break; } @@ -131,7 +131,7 @@ abstract class Projectile extends Entity{ $this->namedtag->setInt("tileZ", $this->blockHit->z); //we intentionally use different ones to PC because we don't have stringy IDs - $this->namedtag->setByte("blockId", $this->blockHitId); + $this->namedtag->setInt("blockId", $this->blockHitId); $this->namedtag->setByte("blockData", $this->blockHitData); } }