Skip to content

Commit 8ecca78

Browse files
committed
Fix
1 parent bc7160f commit 8ecca78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/resources/forge-1.14.4/templates/feature/feature.java.ftl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class ${name}Feature extends ${generator.map(featuretype, "features")} {
7070
public static Feature<?> feature() {
7171
Random random = new Random();
7272
FEATURE = new ${name}Feature();
73-
CONFIGURED_FEATURE = new ConfiguredFeature<>(Feature.DECORATED, new DecoratedFeatureConfig(INSTANCE, <#if featuretype == "configured_feature_reference">${nonHardcodedConfiguration}<#else><#if nonHardcodedConfiguration == "">NoFeatureConfig.NO_FEATURE_CONFIG<#else>${nonHardcodedConfiguration}</#if></#if>, Placement.NOPE, IPlacementConfig.NO_PLACEMENT_CONFIG));
73+
CONFIGURED_FEATURE = new ConfiguredFeature<>(Feature.DECORATED, new DecoratedFeatureConfig(FEATURE, <#if featuretype == "configured_feature_reference">${nonHardcodedConfiguration}<#else><#if nonHardcodedConfiguration == "">NoFeatureConfig.NO_FEATURE_CONFIG<#else>${nonHardcodedConfiguration}</#if></#if>, Placement.NOPE, IPlacementConfig.NO_PLACEMENT_CONFIG));
7474

7575
return FEATURE;
7676
}
@@ -150,6 +150,10 @@ public class ${name}Feature extends ${generator.map(featuretype, "features")} {
150150
return super.place(world, generator, random, origin, config);
151151
</#if>
152152
}
153+
<#elseif generator.map(featuretype, "features")?contains("Feature<")>
154+
@Override public boolean place(IWorld world, ChunkGenerator generator, Random random, BlockPos pos, ${configuration} config) {
155+
return super.place(world, generator, random, origin, config);
156+
}
153157
</#if>
154158
}</#compress>
155159
<#-- @formatter:on -->

0 commit comments

Comments
 (0)