Fixed top-side skulls with no-drop flag set being treated as unknown blocks

This commit is contained in:
Dylan K. Taylor 2022-06-24 01:31:11 +01:00
parent caa4b78a3f
commit 9f65fb5f90
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class Skull extends Flowable{
}
public function readStateFromData(int $id, int $stateMeta) : void{
$this->facing = $stateMeta === 1 ? Facing::UP : BlockDataSerializer::readHorizontalFacing($stateMeta);
$this->facing = ($stateMeta & 0x07) === 1 ? Facing::UP : BlockDataSerializer::readHorizontalFacing($stateMeta);
$this->noDrops = ($stateMeta & BlockLegacyMetadata::SKULL_FLAG_NO_DROPS) !== 0;
}

File diff suppressed because one or more lines are too long