mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Update to Official classnames Patchwork Make the game compile and run Merge in the new HUD overlay API Merge in the new render properties API PEEL Use Gradle 7.2 snapshot to fix eclipse integration bug in 7.1, Would use 7.0 but FG needs 7.1 for some reason. New FML installer Update to 1.17.1 Co-authored-by: LexManos <[email protected]> Co-authored-by: SizableShrimp <[email protected]> Co-authored-by: cpw <[email protected]> Co-authored-by: Curle <[email protected]> Co-authored-by: Unnoen <[email protected]> Co-authored-by: covers1624 <[email protected]> Co-authored-by: DaemonUmbra <[email protected]> Co-authored-by: gigaherz <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
22 lines
1000 B
Diff
22 lines
1000 B
Diff
--- a/net/minecraft/server/commands/LocateCommand.java
|
|
+++ b/net/minecraft/server/commands/LocateCommand.java
|
|
@@ -25,11 +_,18 @@
|
|
return p_137861_.m_6761_(2);
|
|
});
|
|
|
|
+ if (false)
|
|
for(Entry<String, StructureFeature<?>> entry : StructureFeature.f_67012_.entrySet()) {
|
|
literalargumentbuilder = literalargumentbuilder.then(Commands.m_82127_(entry.getKey()).executes((p_137876_) -> {
|
|
return m_137862_(p_137876_.getSource(), entry.getValue());
|
|
}));
|
|
}
|
|
+ else {
|
|
+ for (StructureFeature<?> structurefeatureFeature : net.minecraftforge.registries.ForgeRegistries.STRUCTURE_FEATURES) {
|
|
+ String name = structurefeatureFeature.getRegistryName().toString().replace("minecraft:", "");
|
|
+ literalargumentbuilder = literalargumentbuilder.then(Commands.m_82127_(name)
|
|
+ .executes(ctx -> m_137862_(ctx.getSource(), structurefeatureFeature)));
|
|
+ }}
|
|
|
|
p_137859_.register(literalargumentbuilder);
|
|
}
|