mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-19 11:49:35 +00:00
1 parent
f1ae638bfd
commit
df4e6e2919
2 files changed
+11
-3
No files matched your search
+5
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user