Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.