9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00

Update FeatureUtils.java

This commit is contained in:
XiaoMoMi
2025-06-01 21:48:04 +08:00
parent 7084359166
commit 5a015d7944

View File

@@ -10,7 +10,7 @@ public class FeatureUtils {
public static Object createFeatureKey(Key id) { public static Object createFeatureKey(Key id) {
try { try {
return CoreReflections.method$ResourceKey$create.invoke(null, MRegistries.instance$Registries$PLACED_FEATURE, KeyUtils.toResourceLocation(id)); return CoreReflections.method$ResourceKey$create.invoke(null, MRegistries.instance$Registries$CONFIGURED_FEATURE, KeyUtils.toResourceLocation(id));
} catch (ReflectiveOperationException e) { } catch (ReflectiveOperationException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }