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

Greetings! I've received this crash report from someone who's been using my mod and I can't seem to pinpoint the actual source of the crash: http://pastebin.com/YQ91FgMM

 

From my understanding, the crash is happening when Forge is attempting to register my packet classes. The interesting thing is, this crash just recently appeared. I was fixing other bugs that were found, and then this crash crept in, which I find extremely odd. If there are any ideas as to what the problem could be (besides "you're attempting to use client-only classes on the server" since I can see that much), I would appreciate it.

 

Here's the line that I can trace back to from the crash report that is apparently causing the issue: https://goo.gl/fDL8OZ

 

Thanks in advance!

Able to differentiate the difference of a sum and an integral.

  • Author

Would it be possible for you to tell me which client-only classes I'm using? I know I'm using EntityFX in my code, but I thought that I was providing enough checks to make sure that all of that code is only being run on the client side. I suppose I'm still not fully understanding how packets are supposed to work (despite reading quite a few tutorials)...

Able to differentiate the difference of a sum and an integral.

  • Author

Ok, so is there a "proper way" to have the packet handler get a Minecraft world instance, then? I can't pass it in to the packet at all, but the packet should know what world it ends up in, right?

Able to differentiate the difference of a sum and an integral.

Get world via proxy.

 

In Common:

public World getClientWorld() { return null; }

In Client:

public World getClientWorld() {return Minecraft.getMinecraft().theWorld; }

 

EDIT

Dammit, he was faster :D

1.7.10 is no longer supported by forge, you are on your own.

  • Author

All right, thanks to both of you! This makes perfect sense (even before seeing Ernio's code haha). I will attempt to put this into practice soon. Thanks for the quick responses!

Able to differentiate the difference of a sum and an integral.

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.