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

Hello, I want to generate a lot of chunks, and noticed that the saving is done through the event bus as idicated by the following code in AnvilChunkLoader:

MinecraftForge.EVENT_BUS.post(new ChunkDataEvent.Save(par2Chunk, nbttagcompound));

As far as I understand, things in this EVENT_BUS don't happen right away, but I want it to happen right away so I don't run out of memory.

 

So, how to force all the events in the EVENT_BUS?

Hi

 

I think events in the bus do happen right away, because most of them return a success value to the caller.

 

Try it and see perhaps?

 

-TGG

  • Author

Hi

 

I think events in the bus do happen right away, because most of them return a success value to the caller.

 

Try it and see perhaps?

 

-TGG

Reading the code a bit more, this seems to be true. Strange, that means that either the saving of a chunk happens REALLY fast (less than a millisecond), or does nothing at all...

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.