Projectile: fix stupidity with collided block IDs

This commit is contained in:
Dylan K. Taylor 2018-03-09 21:50:27 +00:00
parent 9098502199
commit 2ee01eb195

View File

@ -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);
} }
} }