mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 20:22:36 +00:00
Unmerged 1.6.4 commit: Casting Channels behave properly with faucets #917
This commit is contained in:
1 parent
0ae49b6723
commit
b8bdc7da77
3 files changed
+41
-30
No files matched your search
@@ -148,7 +148,7 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
float liquidAmount = (float) tankMain.fluid.amount / (float) tankMain.capacity * 0.125f;
|
||||
double startY = tile.tankBelow();
|
||||
renderer.setRenderBounds(0.375D, startY, 0.375D, 0.625D, 0.5 + liquidAmount, 0.625D); //Center
|
||||
renderer.setRenderBounds(0.375D, startY, 0.375D, 0.625D, 0.51 + liquidAmount, 0.625D); //Center
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tankMain.fluid, false);
|
||||
}
|
||||
for (ForgeDirection dir : outputs)
|
||||
@@ -160,8 +160,8 @@ public class BlockRenderCastingChannel implements ISimpleBlockRenderingHandler
|
||||
if (tankSub == null || tankSub.fluid == null)
|
||||
break;
|
||||
float liquidAmount = (float) tankSub.fluid.amount / (float) tankSub.capacity * 0.125f / 2;
|
||||
renderer.setRenderBounds(bounds[0], 0.5, bounds[1], bounds[2], 0.5 + liquidAmount, bounds[3]);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tankSub.fluid, true);
|
||||
renderer.setRenderBounds(bounds[0], 0.51, bounds[1], bounds[2], 0.5 + liquidAmount, bounds[3]);
|
||||
renderLiquidPart(world, x, y, z, block, renderer, tankSub.fluid, false);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user