Skip to content

Commit 650d826

Browse files
committed
Fix features.java.ftl
1 parent 95e5d2a commit 650d826

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/main/resources/forge-1.19.2/templates/elementinits/features.java.ftl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<#--
22
# MCreator (https://mcreator.net/)
33
# Copyright (C) 2012-2020, Pylo
4-
# Copyright (C) 2020-2022, Pylo, opensource contributors
4+
# Copyright (C) 2020-2023, Pylo, opensource contributors
55
#
66
# This program is free software: you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -40,12 +40,7 @@ package ${package}.init;
4040

4141
<#list features as feature>
4242
public static final RegistryObject<Feature<?>> ${feature.getModElement().getRegistryNameUpper()} =
43-
REGISTRY.register("${feature.getModElement().getRegistryName()}",
44-
<#if feature.getModElement().getTypeString() == "feature">
45-
${feature.getModElement().getName()}Feature::new
46-
<#else>
47-
${feature.getModElement().getName()}Feature::feature
48-
</#if>);
43+
REGISTRY.register("${feature.getModElement().getRegistryName()}", ${feature.getModElement().getName()}Feature::new);
4944
</#list>
5045
}
51-
<#-- @formatter:on -->
46+
<#-- @formatter:on -->

0 commit comments

Comments
 (0)