Fixed Tile Render texture

This commit is contained in:
DarkGuardsman 2013-07-25 15:28:32 -04:00
parent 1d4f383e8d
commit fd94bf51c7
3 changed files with 5 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

View file

@ -13,6 +13,7 @@ import dark.api.ColorCode;
import dark.core.client.FluidBlockRenderer; import dark.core.client.FluidBlockRenderer;
import dark.core.client.RenderMachine; import dark.core.client.RenderMachine;
import dark.fluid.client.model.ModelTankSide; import dark.fluid.client.model.ModelTankSide;
import dark.fluid.common.FluidMech;
import dark.fluid.common.machines.TileEntityTank; import dark.fluid.common.machines.TileEntityTank;
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
@ -120,12 +121,12 @@ public class RenderTank extends RenderMachine
String texture = ""; String texture = "";
if (ColorCode.get(meta) == ColorCode.RED) if (ColorCode.get(meta) == ColorCode.RED)
{ {
texture = "/textures/blocks/obsidian.png"; texture = "textures/blocks/obsidian.png";
} }
else else
{ {
texture = "/textures/blocks/stonebrick.png"; texture = "textures/blocks/iron_block.png";
} }
return new ResourceLocation(texture); return new ResourceLocation(FluidMech.instance.getDomain(),texture);
} }
} }