ErfinderLabyrinth Posted February 20, 2022 Share Posted February 20, 2022 Hi I have a problem with Minecraft, Forge or Gradlew Here is a small excerpt from the code: Excerpt from the DisplayS class: java.lang.System.out.println("save"); ClientServerConnection.writeToServer(new SimpleChannelMessage(new ResourceLocation(System.modid, "test"), "hello_Server")); java.lang.System.out.println("saved"); Snippet from the ClientServerConnection class: public static void writeToClient(SimpleChannelMessage msg, ServerPlayerEntity player) { java.lang.System.out.println("write to client"); INSTANCE.send(PacketDistributor.PLAYER.with(() -> player), msg); } And now a snippet in the console: [12:52:32] [Render thread/INFO] [STDOUT/]: [net.lager.system.client.screen.DisplayS:keyPressed:69]: 256 [12:52:32] [Render thread/INFO] [STDOUT/]: [net.lager.system.client.screen.DisplayS:onClose:89]: save [12:52:47] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] -128, 74, 60 has the following block data: {x: -128, y: 74, z: 60, Items: [], id: "lagersystem_mp:dilplayte"} [12:52:50] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game... As you can see here, only "save" is output, the rest is not, but the code "java.lang.System.out.println("save");" is on line 91, but the console says it is on line 89. I only find one way why only "save is output" and that is that not the current code, but a previous code is executed I ran the commands in the cmd Console: - gradlew genEclipseRuns - gradlew Eclipse Both without success. What could be the reason for the error and how do I fix the error? PS: I moved the project to another folder at least once Quote Link to comment Share on other sites More sharing options...
ErfinderLabyrinth Posted February 20, 2022 Author Share Posted February 20, 2022 I reinstalled Forge and then it worked out 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.