[Change] Added BehaviourBuilders to replace the deprecated Block-MaterialSystem

This commit is contained in:
Frank 2023-05-17 14:42:40 +02:00
parent e656bce991
commit 4a74a44422
20 changed files with 144 additions and 95 deletions

View file

@ -61,7 +61,7 @@ public abstract class BaseWallPlantBlock extends BasePlantBlock {
}
public boolean isSupport(LevelReader world, BlockPos pos, BlockState blockState, Direction direction) {
return blockState.getMaterial().isSolid() && blockState.isFaceSturdy(world, pos, direction);
return blockState.isSolid() && blockState.isFaceSturdy(world, pos, direction);
}
@Override