Fixed vertical gutter render
This commit is contained in:
parent
32ee1527c9
commit
cbec2db9c8
2 changed files with 15 additions and 1 deletions
|
@ -88,7 +88,7 @@ public class BlockGutter extends BlockFluidNetwork
|
|||
|
||||
if (!world.isRemote && tile instanceof TileGutter)
|
||||
{
|
||||
((TileGutter) tile).fill(ForgeDirection.UNKNOWN, new FluidStack(FluidRegistry.WATER, 1), true);
|
||||
((TileGutter) tile).fill(ForgeDirection.UNKNOWN, new FluidStack(FluidRegistry.WATER, 10), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,21 @@ public class RenderGutter extends TileEntitySpecialRenderer implements ISimpleIt
|
|||
}
|
||||
|
||||
if (!WorldUtility.isEnabledSide(sides, ForgeDirection.DOWN))
|
||||
{
|
||||
MODEL.renderOnly("base");
|
||||
}
|
||||
else
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(-90, 0, 0, 1);
|
||||
MODEL.renderOnly("backCornerL", "frontCornerL");
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90, 0, 1, 0);
|
||||
GL11.glRotatef(-90, 0, 0, 1);
|
||||
MODEL.renderOnly("backCornerL", "frontCornerL");
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue