use of micdoodle8.mods.galacticraft.planets.asteroids.client.SkyProviderAsteroids in project Galacticraft by micdoodle8.
the class AsteroidsEventHandlerClient method onClientTick.
@SideOnly(Side.CLIENT)
@SubscribeEvent
public void onClientTick(ClientTickEvent event) {
Minecraft minecraft = Minecraft.getMinecraft();
WorldClient world = minecraft.theWorld;
if (world != null) {
if (world.provider instanceof WorldProviderAsteroids) {
if (world.provider.getSkyRenderer() == null) {
world.provider.setSkyRenderer(new SkyProviderAsteroids((IGalacticraftWorldProvider) world.provider));
}
if (world.provider.getCloudRenderer() == null) {
world.provider.setCloudRenderer(new CloudRenderer());
}
}
}
}
Aggregations