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

I noticed my GUI's values and the actual values of the BlockEntity(using debugging and watching the behvaiour) I then did a toString() and saw 2 different addressed and debugging the constructor when a block is placed TWO BlockEntities spawn.
I assume one is client sided and one is server sides but idrk.. what I do know is, the changes are surely updated on the server(as said before), but not on the client, so while the beaviour of the blocks change accordingly to the given values, opening the screen doesn't actually show them properly...

I assumed it is server and client because I get the BlockEntity on the Screen using menu.blockEntity (which is client sided)
and on the server I get it by usering ServerPlayer.getContainer.getBlockEntity() (or smth along these lines) so clearly server side...


How do I fix it? I can post code if needed

  • Author

I use the FriendlyBteBuf to send data, I also call setChanged() when my values change.. Idrk what it does but it seemed logical to do so in my set methods...

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.