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

As already stated in the title, I have problems saving my custom tileentity data,
the saving itself works, but when I change the data I close the world and open it again I get an error message (see log).

What I don't understand about it when loading the world,
the save method should not be called in my tileentity because the data should actually be loaded.
why is the method called?

 

this is my TileEntity
this is the log:

error log.log

  • Author
45 minutes ago, diesieben07 said:

You are calling it yourself, here:

okay makes sense, but how do I prevent the tileentity data from being updated before it is not loaded?
in the forge doc to synchronize tileentity data it is checked whether the area is loaded, includes this also the data of the tileentity?

45 minutes ago, diesieben07 said:

You increment i every loop, but only add to the ListNBT if the element is not null. So if for example the first element is null, on the 2nd loop i will be 1 and the ListNBT will be empty. You then tell the ListNBT to add at position 1, which it does not have (it's still empty). Do not use the add(int, T) method. Just use a normal foreach loop and add(T).

I had used add(i, T) to save the order of the list, but in the end it would not change anything in the function of the tileentity...

Edited by Luis_ST

  • Author
28 minutes ago, diesieben07 said:

I have no idea what you are talking about.

has done itself i have found a solution

 

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.