mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
Projectile: fix stupidity with collided block IDs
This commit is contained in:
parent
9098502199
commit
2ee01eb195
@ -86,8 +86,8 @@ abstract class Projectile extends Entity{
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->namedtag->hasTag("blockId", ByteTag::class)){
|
if($this->namedtag->hasTag("blockId", IntTag::class)){
|
||||||
$blockId = $this->namedtag->getByte("blockId");
|
$blockId = $this->namedtag->getInt("blockId");
|
||||||
}else{
|
}else{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ abstract class Projectile extends Entity{
|
|||||||
$this->namedtag->setInt("tileZ", $this->blockHit->z);
|
$this->namedtag->setInt("tileZ", $this->blockHit->z);
|
||||||
|
|
||||||
//we intentionally use different ones to PC because we don't have stringy IDs
|
//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);
|
$this->namedtag->setByte("blockData", $this->blockHitData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user