Fixed vertical gutter render

This commit is contained in:
Calclavia 2014-02-27 19:38:39 +08:00
parent 32ee1527c9
commit cbec2db9c8
2 changed files with 15 additions and 1 deletions

View file

@ -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);
}
}

View file

@ -46,8 +46,22 @@ 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
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float f)