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

@@ -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 {