mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Merge pull request #2505 from MellowArpeggiation/boxcable
I've lost count of the number of times I've done this
This commit is contained in:
commit
9e5c4e4a8e
@ -114,7 +114,7 @@ public class RenderBoxDuct implements ISimpleBlockRenderingHandler {
|
|||||||
double jLower = lower;
|
double jLower = lower;
|
||||||
double jUpper = upper;
|
double jUpper = upper;
|
||||||
|
|
||||||
if(te instanceof TileEntityPipeBaseNT) {
|
if(block instanceof FluidDuctBox) {
|
||||||
FluidDuctBox.cachedColor = 0xffffff;
|
FluidDuctBox.cachedColor = 0xffffff;
|
||||||
FluidDuctBox duct = (FluidDuctBox) block;
|
FluidDuctBox duct = (FluidDuctBox) block;
|
||||||
|
|
||||||
@ -125,11 +125,13 @@ public class RenderBoxDuct implements ISimpleBlockRenderingHandler {
|
|||||||
pZ = duct.canConnectTo(world, x, y, z, Library.POS_Z, te);
|
pZ = duct.canConnectTo(world, x, y, z, Library.POS_Z, te);
|
||||||
nZ = duct.canConnectTo(world, x, y, z, Library.NEG_Z, te);
|
nZ = duct.canConnectTo(world, x, y, z, Library.NEG_Z, te);
|
||||||
|
|
||||||
FluidType type = Fluids.NONE;
|
if(te instanceof TileEntityPipeBaseNT) {
|
||||||
TileEntityPipeBaseNT pipe = (TileEntityPipeBaseNT) te;
|
FluidType type = Fluids.NONE;
|
||||||
type = pipe.getType();
|
TileEntityPipeBaseNT pipe = (TileEntityPipeBaseNT) te;
|
||||||
if(meta % 3 == 2) {
|
type = pipe.getType();
|
||||||
FluidDuctBox.cachedColor = ColorUtil.lightenColor(type.getColor(), 0.25D); //making very dark things not vantablack
|
if(meta % 3 == 2) {
|
||||||
|
FluidDuctBox.cachedColor = ColorUtil.lightenColor(type.getColor(), 0.25D); //making very dark things not vantablack
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
jLower = 0.0625D;
|
jLower = 0.0625D;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user