mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 23:13:21 +00:00
Fixed lighting on new blocks.
This commit is contained in:
1 parent
ccd686c0df
commit
37ddfe47f6
3 files changed
+9
-7
No files matched your search
@@ -38,8 +38,9 @@ public class FarmingStationRenderer implements ISimpleBlockRenderingHandler {
|
||||
textures[4] = EnderIO.blockFarmStation.getIcon(3, 0);
|
||||
textures[5] = EnderIO.blockFarmStation.getIcon(3, 0);
|
||||
|
||||
Tessellator.instance.setBrightness(15 << 20 | 15 << 4);
|
||||
float b = 1;
|
||||
if(world instanceof World) {
|
||||
if(world != null) {
|
||||
b = RenderUtil.claculateTotalBrightnessForLocation((World) world, x, y, z);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.FluidTank;
|
||||
|
||||
@@ -60,9 +59,10 @@ public class CombustionGeneratorRenderer extends TileEntitySpecialRenderer imple
|
||||
}
|
||||
|
||||
|
||||
Tessellator.instance.setBrightness(15 << 20 | 15 << 4);
|
||||
float b = 1;
|
||||
if(world instanceof World) {
|
||||
b = RenderUtil.claculateTotalBrightnessForLocation((World) world, x, y, z);
|
||||
if(world != null) {
|
||||
b = RenderUtil.claculateTotalBrightnessForLocation(Minecraft.getMinecraft().theWorld, x, y, z);
|
||||
}
|
||||
|
||||
float[] cols = new float[6];
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package crazypants.enderio.machine.still;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import crazypants.enderio.EnderIO;
|
||||
@@ -54,9 +54,10 @@ public class VatRenderer implements ISimpleBlockRenderingHandler {
|
||||
textures[5] = EnderIO.blockVat.getIcon(3, 0);
|
||||
}
|
||||
|
||||
Tessellator.instance.setBrightness(15 << 20 | 15 << 4);
|
||||
float b = 1;
|
||||
if(world instanceof World) {
|
||||
b = RenderUtil.claculateTotalBrightnessForLocation((World) world, x, y, z);
|
||||
if(world != null) {
|
||||
b = RenderUtil.claculateTotalBrightnessForLocation(Minecraft.getMinecraft().theWorld, x, y, z);
|
||||
}
|
||||
|
||||
float[] cols = new float[6];
|
||||
|
||||
Reference in new issue
Block a user