mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
BlockStateToObjectDeserializer: remove redundant helper
This commit is contained in:
@ -194,7 +194,10 @@ final class BlockStateToObjectDeserializer implements BlockStateDeserializer{
|
||||
Ids::WHITE_GLAZED_TERRACOTTA => DyeColor::WHITE(),
|
||||
Ids::YELLOW_GLAZED_TERRACOTTA => DyeColor::YELLOW(),
|
||||
] as $id => $color){
|
||||
$this->map($id, fn(Reader $in) => Helper::decodeGlazedTerracotta($color, $in));
|
||||
$this->map($id, fn(Reader $in) => Blocks::GLAZED_TERRACOTTA()
|
||||
->setColor($color)
|
||||
->setFacing($in->readHorizontalFacing())
|
||||
);
|
||||
}
|
||||
|
||||
foreach([
|
||||
|
Reference in New Issue
Block a user