Jump to content

Recommended Posts

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?

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.