Add support for bonus chest configuration in WorldCreator (#12344)

This commit is contained in:
David
2025-04-14 17:24:19 +02:00
committed by GitHub
parent de410d13ef
commit 33e8928f53
5 changed files with 39 additions and 3 deletions

View File

@@ -250,7 +250,7 @@
+ // Paper start - expose FeatureElement wrapper for GameRules.Type.
+ // Chosen over simply adding this to the inheritance to avoid reobf issues with spigot...
+ public net.minecraft.world.flag.FeatureElement asFeatureElement() {
+ return net.minecraft.world.level.GameRules.Type.this::requiredFeatures;
+ return GameRules.Type.this::requiredFeatures;
+ }
+ // Paper end - expose FeatureElement wrapper for GameRules.Type.
}