2929import net .minecraft .world .phys .shapes .VoxelShape ;
3030import net .neoforged .bus .api .SubscribeEvent ;
3131import net .neoforged .fml .common .EventBusSubscriber ;
32- import net .regions_unexplored .world .features .treedecorators .BlackwoodBioshroom ;
3332import net .regions_unexplored .world .level .feature .configuration .GiantBioshroomConfiguration ;
34- import net .regions_unexplored .world .level .feature .configuration .RuTreeConfiguration ;
33+ import net .regions_unexplored .world .level .feature .configuration .RUTreeConfiguration ;
3534import net .regions_unexplored .world .level .feature .tree .*;
3635import net .regions_unexplored .world .level .feature .tree .nether .BrimWillowFeature ;
3736import net .regions_unexplored .world .level .feature .tree .nether .TallBrimWillowFeature ;
37+ import net .regions_unexplored .worldgen .treedecorator .BlackwoodBioshroomDecorator ;
3838
3939@ EventBusSubscriber (modid = DynamicTreesRU .MOD_ID )
4040public class DTRURegistries {
@@ -93,7 +93,7 @@ public static void registerFamilyTypes(final TypeRegistryEvent<Family> event) {
9393 event .registerType (DynamicTreesRU .location ("brimwood" ), BrimwoodFamily .TYPE );
9494 }
9595
96- public static final FeatureCanceller RU_TREE_CANCELLER = new TreeFeatureCanceller <>(DynamicTreesRU .location ("tree" ), RuTreeConfiguration .class );
96+ public static final FeatureCanceller RU_TREE_CANCELLER = new TreeFeatureCanceller <>(DynamicTreesRU .location ("tree" ), RUTreeConfiguration .class );
9797 public static final FeatureCanceller RU_TREE2_CANCELLER = new TreeFeatureCanceller <>(DynamicTreesRU .location ("tree_2" ), NoneFeatureConfiguration .class ){
9898 @ Override
9999 public boolean shouldCancel (ConfiguredFeature <?, ?> configuredFeature , BiomePropertySelectors .NormalFeatureCancellation featureCancellations ) {
@@ -118,14 +118,14 @@ public boolean shouldCancel(ConfiguredFeature<?, ?> configuredFeature, BiomeProp
118118 };
119119 public static final FeatureCanceller TREE_NO_SHROOMS_CANCELLER = new TreeFeatureCanceller <>(DynamicTreesRU .location ("tree_no_shrooms" ), NoneFeatureConfiguration .class ){
120120 private boolean isConfigClass (FeatureConfiguration config ){
121- return config instanceof TreeConfiguration || config instanceof RuTreeConfiguration ;
121+ return config instanceof TreeConfiguration || config instanceof RUTreeConfiguration ;
122122 }
123123 @ Override
124124 public boolean shouldCancel (ConfiguredFeature <?, ?> configuredFeature , BiomePropertySelectors .NormalFeatureCancellation featureCancellations ) {
125125 final FeatureConfiguration featureConfig = configuredFeature .config ();
126126
127127 if (isConfigClass (featureConfig )) {
128- if (featureConfig instanceof TreeConfiguration treeConfiguration && !treeConfiguration .decorators .isEmpty () && treeConfiguration .decorators .getFirst () instanceof BlackwoodBioshroom ){
128+ if (featureConfig instanceof TreeConfiguration treeConfiguration && !treeConfiguration .decorators .isEmpty () && treeConfiguration .decorators .getFirst () instanceof BlackwoodBioshroomDecorator ){
129129 return false ;
130130 }
131131 String nameSpace = "" ;
0 commit comments