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

While testing my Legendary Beasts mod by running a "dedicated" server from my computer, I noticed the following issue:

 

Conditions:

Only have a "clientPacketHandlerSpec" defined ->

----client does not receive packets when playing on a dedicated server

---- client does receive packets on an integrated server

 

Have both a "clientPacketHandlerSpec" and "serverPacketHandlerSpec" ->

----client does receive packets on a dedicated server

----client does receive packets on an integrated server

 

 

 

  • Author

Update forge. it's a known bug with the earlier versions.

Reproducing with Forge 4.0.0.222.

  • Author

@NetworkMod
(clientSideRequired = true, serverSideRequired = false, clientPacketHandlerSpec = @SidedPacketHandler(channels = CHANNEL,packetHandler = ClientPacketHandler.class),
connectionHandler = ConnectionHandler.class)

That's the Annotation. Like I said, it works fine in SinglePlayer (Integrated Server). Just doesn't work when connecting to a dedicated server, the onPacketData method isn't being called.

You only have a client side packet handler. In a dedicated server, it will never get called. Also update forge for proper behaviour of these..

  • Author

You only have a client side packet handler. In a dedicated server, it will never get called. Also update forge for proper behaviour of these..

It doesn't get called on the client when connecting to a dedicated server. However, to fix it I just made a dummy ServerPacketHandler, so it's okay.

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.