mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fixed glowing tanks, fixed blend screwup when in toolbar, quick cleanup
This commit is contained in:
1 parent
7924531a4e
commit
d7b0899f38
3 files changed
+8
-5
No files matched your search
@@ -43,7 +43,7 @@ public class RenderPortableTank extends TileEntitySpecialRenderer
|
||||
|
||||
public void render(Fluid fluid, float fluidScale, boolean active, double x, double y, double z)
|
||||
{
|
||||
if(fluidScale > 0)
|
||||
if(fluid != null && fluidScale > 0)
|
||||
{
|
||||
push();
|
||||
|
||||
@@ -80,7 +80,6 @@ public class RenderPortableTank extends TileEntitySpecialRenderer
|
||||
private void pop()
|
||||
{
|
||||
GL11.glPopAttrib();
|
||||
MekanismRenderer.glowOff();
|
||||
MekanismRenderer.blendOff();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
@@ -91,7 +90,6 @@ public class RenderPortableTank extends TileEntitySpecialRenderer
|
||||
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
|
||||
GL11.glEnable(GL11.GL_CULL_FACE);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
MekanismRenderer.glowOn();
|
||||
MekanismRenderer.blendOn();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user