Posted June 28, 20178 yr Hello! I just started to mod again and this time I have a better PC But anyway... I already have an issue... I get the error seen in the title. Here are my files... the reason Im not detailing my error is because I seriously have no idea wether forge changed the sides annotation or im being a dunce again... All the files Spoiler Mod.java package com.eks.dee; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import com.eks.dee.CommonProxy; @Mod(modid = Refs.MODID, version = Refs.VERSION) public class EksDee { @SidedProxy(clientside = Refs.CLIENT_PROXY, serverside = Refs.COMMON_PROXY) public CommonProxy proxy; @EventHandler public void init(FMLInitializationEvent event) { } } Refs.java package com.eks.dee; public class Refs { public static final String MODID = "examplemod"; public static final String VERSION = "1.0"; public static final String CLIENT_PROXY = "com.eks.dee.ClientProxy"; public static final String COMMON_PROXY = "com.eks.dee.CommonProxy"; } CommonProxy.java package com.eks.dee; import net.minecraftforge.fml.common.event.*; public class CommonProxy { public void preInit(FMLPreInitializationEvent event){} public void init(FMLInitializationEvent event){} public void postInit(FMLPostInitializationEvent event){} public void serverStarting(FMLServerStartingEvent event){} public void serverStopping(FMLServerStoppingEvent event) {} } @SidedProxy(clientside = Refs.CLIENT_PROXY, serverside = Refs.COMMON_PROXY) ClientProxy.java package com.eks.dee; public class ClientProxy extends CommonProxy { } Edited June 28, 20178 yr by Delupara When they say your code doesn't follow convention but ur edgy so u dont care d-d-d-dab on them haterz
June 28, 20178 yr Author 3 hours ago, Jay Avery said: @SidedProxy doesn't go on your main mod class, it goes on your proxy field itself. im high as sh*t thanks.... EDIT: still doesn't work. Edited June 28, 20178 yr by Delupara When they say your code doesn't follow convention but ur edgy so u dont care d-d-d-dab on them haterz
June 28, 20178 yr Author 3 hours ago, Jay Avery said: Post your updated code. Is the error the same? Edited in the main post, yes. When they say your code doesn't follow convention but ur edgy so u dont care d-d-d-dab on them haterz
June 28, 20178 yr The annotation is still in the wrong place! Not on your proxy class, on the proxy field in your main class. Like this: @SidedProxy(..etc) public CommonProxy proxy;
June 28, 20178 yr Author 3 hours ago, Jay Avery said: The annotation is still in the wrong place! Not on your proxy class, on the proxy field in your main class. Like this: @SidedProxy(..etc) public CommonProxy proxy; I missread sorry. edited main post, same issue. same error. Edited June 28, 20178 yr by Delupara When they say your code doesn't follow convention but ur edgy so u dont care d-d-d-dab on them haterz
June 28, 20178 yr Well, it seems to be in the right place now. What forge version are you using? In my 1.11.2 workspace, the annotation is at net.minecraftforge.fml.common.SidedProxy - can you find it?
June 28, 20178 yr Author 3 hours ago, Jay Avery said: Well, it seems to be in the right place now. What forge version are you using? In my 1.11.2 workspace, the annotation is at net.minecraftforge.fml.common.SidedProxy - can you find it? yep, I imported the package and eclise "decided it was ok" and now its fixed. thanks When they say your code doesn't follow convention but ur edgy so u dont care d-d-d-dab on them haterz
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.