DreamingSanity Posted August 24, 2019 Share Posted August 24, 2019 (edited) I have created a mod and have set up a proxy using this line: public static IProxy proxy = new DistExecutor.runForDist(() -> () -> () -> new ClientProxy(), () -> () -> () -> new ServerProxy()); When I have this line uncommented in Eclipse, it red underlines 'DistExecutor.runForDist' and says: DistExecutor.runForDist cannot be resolved to a type. However, when I click the run button, Eclipse loads up Minecraft as if there are no errors at all but my mod does not show up. And looking through the logs shows no sign of it even getting to the setup stage of my mod. When I comment out the line, Eclipse runs Minecraft, but like before my mod does not show up (there are no errors anywhere else). Because of this, I decided to start up my game using Terminal. When the line is commented out, the mod compiles and shows up in the game. When the line is uncommented, it does not compile. It shows this error in the terminal: It seems to me that DistExecutor.runForDist is an actual error and not one of the Eclipse 'ghost errors'. Just to make sure I wasn't going crazy, I looked at the source code for forge and indeed, 'runForDist' is a valid function. What is causing Eclipse to think this is an error? Thanks, Dream https://pastebin.com/zqpT0Rzt - main code https://pastebin.com/FbcRv6ah - latest.log (debug.log was too large) - this is the log when the mod did compile. There is no log produced when it doesn't compile. Edited August 24, 2019 by DreamingSanity title Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 24, 2019 Share Posted August 24, 2019 58 minutes ago, DreamingSanity said: new DistExecutor.runForDist Why is that "new" there? Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
DreamingSanity Posted August 24, 2019 Author Share Posted August 24, 2019 (edited) 9 minutes ago, Animefan8888 said: Why is that "new" there? That's my mistake - I thought I saw the video write new. Maybe I am crazy! A fresh pair of eyes is always good. Thank you, that has fixed it! (along with removing some brackets - I had one to many on both sides) Dream EDIT: Unfortunately, even with no errors, when running Minecraft from Eclipse, my mod isn't being loaded. Edited August 24, 2019 by DreamingSanity Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.