Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

MCP to SRG doesn't work when building jar


Recommended Posts

I'm using MCP fields 

ObfuscationReflectionHelper.getPrivateValue(AnyClass.class, foo, "bar")

The generated jar (build/libs/example.jar) has no converted fields (errors: [net.minecraftforge.fml.util.ObfuscationReflectionHelper/REFLECTION]: Unable to locate field ...).
For the jar build I tried ./gradlew build and intellij idea.
What have I missed or could have done wrong?

client: 1.18
forge: 38.0.14

Edited by XXXL
Link to comment
Share on other sites

  • XXXL changed the title to MCP to SRG doesn't work when building jar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • problem with the lootr mod. report it to the author.
    • Hie  i make this block bars block but i cannot see through even it is just 1.5D thick is just has this black background what and where flag i must set up to make this block traslucent ?   
    • Hi. I cant join my minecraft world on singleplayer. After reaching %100, it crashes. Heres the crash report, would appreciate the help.  Description: Exception in server tick loop java.lang.NullPointerException: Cannot invoke "net.minecraft.server.level.ServerLevel.m_8895_()" because the return value of "net.minecraft.server.MinecraftServer.m_129783_()" is null     at noobanidus.mods.lootr.data.DataStorage.getDataStorage(DataStorage.java:47) ~[lootr-1.18.2-!/:] {re:classloading}     at noobanidus.mods.lootr.data.DataStorage.doDecay(DataStorage.java:104) ~[lootr-1.18.2-!/:] {re:classloading}     at noobanidus.mods.lootr.entity.EntityTicker.onServerTick(EntityTicker.java:36) ~[lootr-1.18.2-!/:] {re:classloading}     at net.minecraftforge.eventbus.ASMEventHandler_504_EntityTicker_onServerTick_ServerTickEvent.invoke(.dynamic) ~[?:?] {}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] {}     at net.minecraftforge.event.ForgeEventFactory.onPostServerTick(ForgeEventFactory.java:939) ~[forge-1.18.2-40.1.41-universal.jar%23326!/:?] {re:mixin,re:classloading}     at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:879) ~[client-1.18.2-20220404.173914-srg.jar%23321!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}     at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.18.2-20220404.173914-srg.jar%23321!/:?] {re:classloading,pl:runtimedistcleaner:A,re:mixin,pl:runtimedistcleaner:A}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:685) ~[client-1.18.2-20220404.173914-srg.jar%23321!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261) ~[client-1.18.2-20220404.173914-srg.jar%23321!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}     at java.lang.Thread.run(Thread.java:833) [?:?] {}
    • Problème 1: https://imgur.com/ah3Mn3m Mod https://imgur.com/1BGNh4m
    • Problem with Chisel. Make sure you are using the latest version. If the Mod is already up to date, report this bug to the Mod author.
  • Topics

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.