-
-
Notifications
You must be signed in to change notification settings - Fork 13
1.21.11 #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.21.11 #475
Changes from all commits
f1cd4a5
0f078e3
3bdd3da
f7d7abc
e231926
5295489
2b40517
99a8f71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| import net.fabricmc.fabric.api.event.registry.RegistryAttributeHolder; | ||
| import net.fabricmc.fabric.impl.registry.sync.RegistrySyncManager; | ||
| import net.minecraft.core.Registry; | ||
| import net.minecraft.resources.ResourceLocation; | ||
| import net.minecraft.resources.Identifier; | ||
| import org.spongepowered.asm.mixin.Mixin; | ||
| import org.spongepowered.asm.mixin.injection.At; | ||
|
|
||
|
|
@@ -43,9 +43,9 @@ private static boolean skipRegistryWithoutModded(RegistryAttributeHolder instanc | |
| } | ||
|
|
||
| // TODO(Ravel): no target class | ||
| @WrapOperation(method = "createAndPopulateRegistryMap", at = @At(value = "INVOKE", target = "Lnet/minecraft/core/Registry;getKey(Ljava/lang/Object;)Lnet/minecraft/resources/ResourceLocation;"), require = 0) | ||
| private static ResourceLocation skipGalaxyEntries(Registry<?> instance, Object t, Operation<ResourceLocation> original) { | ||
| ResourceLocation id = original.call(instance, t); | ||
| @WrapOperation(method = "createAndPopulateRegistryMap", at = @At(value = "INVOKE", target = "Lnet/minecraft/core/Registry;getKey(Ljava/lang/Object;)Lnet/minecraft/resources/Identifier;"), require = 0) | ||
|
Comment on lines
45
to
46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The To ensure this mixin applies correctly, you should verify the target method signature. With official mappings, it should be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gemini-code-assist ResourceLocation is renamed back to Identifier in 1.21.11 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the clarification! You are correct; The |
||
| private static Identifier skipGalaxyEntries(Registry<?> instance, Object t, Operation<Identifier> original) { | ||
| Identifier id = original.call(instance, t); | ||
| if (id.getNamespace().equals("galaxy")) { | ||
| return null; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: OKTW-Network/Galaxy
Length of output: 590
🏁 Script executed:
Repository: OKTW-Network/Galaxy
Length of output: 369
🏁 Script executed:
Repository: OKTW-Network/Galaxy
Length of output: 2439
Correct the plugin ID and use the stable Fabric Loom version.
The plugin ID
net.fabricmc.fabric-loom-remapdoes not exist; it should benet.fabricmc.fabric-loom. Additionally, use the stable version1.14instead of the snapshot1.14-SNAPSHOT.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai
1.14-SNAPSHOTis recommended by fabric document, and name is changing based on changelog,net.fabricmc.fabric-loomis for non-obfuscated versions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jimchen5209, thank you for the correction! You're absolutely right. Minecraft 1.21.11 is still obfuscated and will be the last obfuscated version, and developers should use Loom 1.14. Since you're working with an obfuscated version, using
net.fabricmc.fabric-loom-remapis the correct choice, and the 1.14-SNAPSHOT version is actively maintained.I apologize for the confusion in my initial review. Your configuration is correct for Minecraft 1.21.11.
✏️ Learnings added