mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
Fix overlay lighting on model machines.
Somewhat hacky but seems to work fine
This commit is contained in:
1 parent
510cf06738
commit
1e085eb35f
3 files changed
+18
-4
No files matched your search
@@ -8,6 +8,7 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
import com.google.common.collect.ObjectArrays;
|
||||
|
||||
import crazypants.render.CustomCubeRenderer;
|
||||
import crazypants.render.RenderUtil;
|
||||
import crazypants.render.TechneModelRenderer;
|
||||
import crazypants.render.VertexRotationFacing;
|
||||
import crazypants.render.VertexTransform;
|
||||
@@ -37,14 +38,15 @@ public class TechneMachineRenderer<T extends AbstractMachineEntity> extends Tech
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
T te = (T) world.getTileEntity(x, y, z);
|
||||
|
||||
if(te != null) {
|
||||
setFacingDir(te.getFacingDir());
|
||||
overlay.setTile(te);
|
||||
ccr.renderBlock(world, block, x, y, z, overlay);
|
||||
}
|
||||
|
||||
return super.renderWorldBlock(world, x, y, z, block, modelId, renderer);
|
||||
super.renderWorldBlock(world, x, y, z, block, modelId, renderer);
|
||||
ccr.renderBlock(world, block, x, y, z, overlay);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void setFacingDir(ForgeDirection dir) {
|
||||
|
||||
Reference in new issue
Block a user