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

Hey,

 

I've tried creating a new instance of my SkyProvider by adding:

 

this.setSkyProvider(new CustomSkyProvider());

 

into the constructor. Inside the render method in the sky provider I added a log output to see if the method was called, and nothing happens. Is this feature broken in the latest builds, or do you set the Sky Provider some other way?

 

Using build #269

 

Thanks.

 

Edit: After further investigation, the sky renderer works the first time you join the dimension, but after leaving and joining again it goes back to the old sky.

Worlds are destroyed every time you move from them.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

So... SkyProvider is useless most of the time.

 

Wouldn't there be a way to fix that?

 

Edit: Found the problem,

FMLClientHandler.instance().getClient().theWorld instanceof CustomWorldProvider

returns true when you join the world for the first time, but after logging back in again, returns false.

How are you setting the world provider?

Either way, if you're doing it based off that then thats the issue, but there are World.Load events that you can use to register things.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

I thought you just had to register the provider and providertype, since the provider is set through the WorldClient on client-side, which gets the provider from DimensionManager.

 

Edit: In the for loop on line 230 of MinecraftServer.java, is DimensionManager.getIDs() supposed to have a length of zero? That's where I traced the problem back to.

 

Edit2: Nevermind, the problem was WorldProvider.setDimension(id) was setting the wrong variable, submitted a pull request.

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.