FlowerPot: remove usage of legacy variant

This commit is contained in:
Dylan K. Taylor 2022-06-24 23:24:03 +01:00
parent f24f2d9ca9
commit 5f7521027e
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -83,7 +83,7 @@ class FlowerPot extends Flowable{
$block instanceof Flower ||
$block instanceof RedMushroom ||
$block instanceof Sapling ||
($block instanceof TallGrass && $block->getIdInfo()->getLegacyVariant() === BlockLegacyMetadata::TALLGRASS_FERN); //TODO: clean up
($block instanceof TallGrass && $block->getTypeId() === BlockTypeIds::LARGE_FERN);
//TODO: bamboo
}