Skip to content

Commit bc82fb6

Browse files
authored
Merge pull request #9 from m3t4f1v3/1.21.1
fix for new ru
2 parents 7c0a8e2 + c37557b commit bc82fb6

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ dependencies {
113113
implementation "com.dtteam.dynamictreesplus:DynamicTreesPlus:$dynamic_trees_plus_version"
114114
// implementation "curse.maven:dynamictrees-252818:7206627"
115115
// implementation "curse.maven:dynamictreesplus-478155:7205442"
116-
implementation "curse.maven:regions-unexplored-659110:6273893"
116+
implementation "curse.maven:regions-unexplored-659110:7737325"
117117
implementation "curse.maven:terrablender-neoforge-940057:6054947"
118118

119119
implementation "curse.maven:jade-324717:6853386"

src/main/java/dtteam/dtru/init/DTRUPlusRegistries.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import net.minecraft.world.level.block.state.BlockState;
2525
import net.neoforged.bus.api.SubscribeEvent;
2626
import net.neoforged.neoforge.data.event.GatherDataEvent;
27-
import net.regions_unexplored.block.RuBlocks;
27+
import net.regions_unexplored.registry.RUBlocks;
2828

2929
public class DTRUPlusRegistries {
3030

@@ -54,11 +54,11 @@ public static void registerSpeciesTypes(final TypeRegistryEvent<Species> event)
5454
}
5555

5656
public static void setup(){
57-
setupBioshroomConnectable(RuBlocks.BLUE_BIOSHROOM_BLOCK.get());
58-
setupBioshroomConnectable(RuBlocks.GLOWING_BLUE_BIOSHROOM_BLOCK.get());
59-
setupBioshroomConnectable(RuBlocks.GLOWING_GREEN_BIOSHROOM_BLOCK.get());
60-
setupBioshroomConnectable(RuBlocks.GLOWING_PINK_BIOSHROOM_BLOCK.get());
61-
setupBioshroomConnectable(RuBlocks.GLOWING_YELLOW_BIOSHROOM_BLOCK.get());
57+
setupBioshroomConnectable(RUBlocks.BLUE_BIOSHROOM_BLOCK.get());
58+
setupBioshroomConnectable(RUBlocks.GLOWING_BLUE_BIOSHROOM_BLOCK.get());
59+
setupBioshroomConnectable(RUBlocks.GLOWING_GREEN_BIOSHROOM_BLOCK.get());
60+
setupBioshroomConnectable(RUBlocks.GLOWING_PINK_BIOSHROOM_BLOCK.get());
61+
setupBioshroomConnectable(RUBlocks.GLOWING_YELLOW_BIOSHROOM_BLOCK.get());
6262

6363
BranchConnectables.makeBlockConnectable(Blocks.SHROOMLIGHT, (state, level, pos, side) -> {
6464
if (side.getAxis() == Direction.Axis.Y) return 0;

src/main/java/dtteam/dtru/init/DTRURegistries.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
import net.minecraft.world.phys.shapes.VoxelShape;
3030
import net.neoforged.bus.api.SubscribeEvent;
3131
import net.neoforged.fml.common.EventBusSubscriber;
32-
import net.regions_unexplored.world.features.treedecorators.BlackwoodBioshroom;
3332
import 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;
3534
import net.regions_unexplored.world.level.feature.tree.*;
3635
import net.regions_unexplored.world.level.feature.tree.nether.BrimWillowFeature;
3736
import net.regions_unexplored.world.level.feature.tree.nether.TallBrimWillowFeature;
37+
import net.regions_unexplored.worldgen.treedecorator.BlackwoodBioshroomDecorator;
3838

3939
@EventBusSubscriber(modid = DynamicTreesRU.MOD_ID)
4040
public 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 = "";

src/main/java/dtteam/dtru/tree/EucalyptusFamily.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import net.minecraft.world.level.block.state.BlockState;
99
import net.neoforged.api.distmarker.Dist;
1010
import net.neoforged.api.distmarker.OnlyIn;
11-
import net.regions_unexplored.config.RuCommonConfig;
11+
import net.regions_unexplored.config.RuClientConfig;
1212

1313
import java.awt.*;
1414

@@ -22,9 +22,9 @@ public EucalyptusFamily(ResourceLocation name) {
2222
@OnlyIn(Dist.CLIENT)
2323
public int branchColorMultiplier(BlockState state, BlockAndTintGetter level, BlockPos pos) {
2424
Color rainbow = Color.getHSBColor(
25-
((float)pos.getX() + (float)pos.getY() + (float)pos.getZ()) / RuCommonConfig.EUCALYPTUS_TRANSITION_SIZE.get().floatValue(),
26-
RuCommonConfig.EUCALYPTUS_SATURATION.get().floatValue(),
27-
RuCommonConfig.EUCALYPTUS_BRIGHTNESS.get().floatValue());
25+
((float)pos.getX() + (float)pos.getY() + (float)pos.getZ()) / RuClientConfig.EUCALYPTUS_TRANSITION_SIZE.get().floatValue(),
26+
RuClientConfig.EUCALYPTUS_SATURATION.get().floatValue(),
27+
RuClientConfig.EUCALYPTUS_BRIGHTNESS.get().floatValue());
2828
return rainbow.getRGB();
2929
}
3030
}

0 commit comments

Comments
 (0)