Posted December 10, 20213 yr So when I try to launch my mod i get "tried to access field net.minecraft.client.Minecraft.field_71422_O" at me.********.********.DiscordPresence.start(DiscordPresence.java:26) at me.********.********.Main.load(Main.java:99) at me.********.********.Main.init(Main.java:167) How do I fix this? Main:99 | DiscordPresence.start(); Main:167 | Main.load(); DiscordPresence:26 | DiscordPresence.presence.details = Minecraft.getMinecraft().currentScreen instanceof GuiMainMenu ? "In the main menu." : "Playing " + (Minecraft.getMinecraft().currentServerData != null ? (RPC.INSTANCE.showIP.getValue().booleanValue() ? "on " + Minecraft.getMinecraft() I blurred out the names of the packages in this post. Edited December 16, 20213 yr by WhatsVape fixed formatting
December 11, 20213 yr You need to show more info... But my assumption is you are calling client side only stuff (Minecraft class) from common place (Main class)
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.