BlockStateToObjectDeserializer: remove redundant helper

This commit is contained in:
Dylan K. Taylor
2023-05-08 22:16:55 +01:00
parent 1b452f3a88
commit 7b1a1e5a18
2 changed files with 4 additions and 8 deletions

View File

@ -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([