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

When I run the code in normal java, it works, but when I run with the minecraft forge, it puts an  "Â" character.

I put that code to the preInit event. I can print it to the chat or anything, that "Â" character will be visible.

I'm using minecraft forge 1.8.9 - 11.15.1.1722 (recommended 1.8.9) from the official minecraft forge website.

I can solve this by String.replaceAll("Â", "") but it's annoying, and I want to know why is this happen.

 

Sorry for bad english I'm hungarian.

 

 

code:

 

File config = new File("c:\\Users\\gutyina70\\Desktop\\MyJava\\Eclipse\\McMod AutoChat new Win 8\\run\\config\\AutoChat\\gigi\\messages.dat");
BufferedReader reader = new BufferedReader(new FileReader(config));
System.out.println("read from file: " + reader.readLine());
reader.close();
System.out.println("read from string: " + "§aTEST");

 

output in normal java:

 

read from file: §aTEST
read from string: §aTEST

 

output in java with forge:

 

[20:05:28] [Client thread/INFO] [STDOUT]: [com.gutyina70.autochat.AutoChat:preInit:31]: read from file: §aTEST
[20:05:28] [Client thread/INFO] [STDOUT]: [com.gutyina70.autochat.AutoChat:preInit:33]: read from string: §aTEST

 

  • Author

The problem is MAYBE the normal java and the java with forge works with an other version of java, I don't know. Where can I see the java version in eclipse?

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.