mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Fix liquids in tanks not rendering their top side if an opaque block is on top. (Relevant for all non-full tanks)
This commit is contained in:
1 parent
1daf7fa248
commit
9070c73466
3 files changed
+12
-5
No files matched your search
@@ -884,8 +884,17 @@ public class BlockSkinRenderHelper
|
||||
if(stillIcon == null) stillIcon = FluidRegistry.WATER.getStillIcon();
|
||||
if(flowingIcon == null) flowingIcon = FluidRegistry.WATER.getFlowingIcon();
|
||||
|
||||
return Minecraft.isAmbientOcclusionEnabled() ? renderFakeBlockWithAmbientOcclusion(stillIcon, flowingIcon, x, y, z, var6, var7, var8, renderer, world) : renderFakeBlockWithColorMultiplier(
|
||||
stillIcon, flowingIcon, x, y, z, var6, var7, var8, renderer, world);
|
||||
boolean raf = renderer.renderAllFaces;
|
||||
renderer.renderAllFaces = true;
|
||||
|
||||
boolean ret;
|
||||
if(Minecraft.isAmbientOcclusionEnabled())
|
||||
ret = renderFakeBlockWithAmbientOcclusion(stillIcon, flowingIcon, x, y, z, var6, var7, var8, renderer, world);
|
||||
else
|
||||
ret = renderFakeBlockWithColorMultiplier(stillIcon, flowingIcon, x, y, z, var6, var7, var8, renderer, world);
|
||||
|
||||
renderer.renderAllFaces = raf;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static boolean renderFakeBlockWithAmbientOcclusion (IIcon stillIcon, IIcon flowingIcon, int xPos, int yPos, int zPos, float colorRed, float colorGreen, float colorBlue, RenderBlocks render,
|
||||
|
||||
@@ -224,6 +224,7 @@ public class Smeltery
|
||||
addMelting(type, is, temperatureDifference, fluidAmount);
|
||||
}
|
||||
|
||||
// todo: mantle -> itemmeta wrapper
|
||||
public static class SmelteryInput
|
||||
{
|
||||
public final Item input;
|
||||
|
||||
@@ -93,11 +93,8 @@ public class LavaTankBlock extends BlockContainer
|
||||
@Override
|
||||
public boolean shouldSideBeRendered (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
// if (side == 0 && world.getBlockMetadata(x, y, z) == 0)
|
||||
// return super.shouldSideBeRendered(world, x, y, z, side);
|
||||
Block bID = world.getBlock(x, y, z);
|
||||
return bID == this ? false : super.shouldSideBeRendered(world, x, y, z, side);
|
||||
// return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user