mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Updated for 1.20.30 release
This commit is contained in:
@ -246,9 +246,9 @@ final class BlockStateWriter{
|
||||
|
||||
/** @return $this */
|
||||
public function writeSlabPosition(SlabType $slabType) : self{
|
||||
$this->writeBool(BlockStateNames::TOP_SLOT_BIT, match($slabType->id()){
|
||||
SlabType::TOP()->id() => true,
|
||||
SlabType::BOTTOM()->id() => false,
|
||||
$this->writeString(BlockStateNames::MC_VERTICAL_HALF, match($slabType->id()){
|
||||
SlabType::TOP()->id() => StringValues::MC_VERTICAL_HALF_TOP,
|
||||
SlabType::BOTTOM()->id() => StringValues::MC_VERTICAL_HALF_BOTTOM,
|
||||
default => throw new BlockStateSerializeException("Invalid slab type " . $slabType->name())
|
||||
});
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user