Fixes #25
Fixes #24
This commit is contained in:
Jeremy Diamond committed 2015-08-27 13:30:20 -07:00
1 parent f1ae638bfd
commit df4e6e2919
2 files changed
+11 -3

No files matched your search

@@ -1,5 +1,6 @@
package fox.spiteful.avaritia.compat.botania.alfheim;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import fox.spiteful.avaritia.FieldHelper;
@@ -23,8 +24,10 @@ public class WorldProviderAlfheim extends WorldProvider {
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.hell, 0.0F);
this.isHellWorld = true;
this.hasNoSky = false;
this.setCloudRenderer(new ApocalypseCloudRenderer());
this.setSkyRenderer(new ApocalypseSkyRenderer());
if(FMLCommonHandler.instance().getSide().isClient()) {
this.setCloudRenderer(new ApocalypseCloudRenderer());
this.setSkyRenderer(new ApocalypseSkyRenderer());
}
}
/**
@@ -72,7 +72,12 @@ public class CosmicRenderShenanigans {
private static Field mapfield = ReflectionHelper.findField(EntityRenderer.class, lightmapobf);
public static void setLightFromLocation(World world, int x, int y, int z) {
int coord = world.getLightBrightnessForSkyBlocks(x, y, z, 0);
if(world == null){
setLightLevel(1.0f);
return;
}
int coord = world.getLightBrightnessForSkyBlocks(x, y, z, 0);
int[] map = null;
try {