Fixed Tile Render texture
This commit is contained in:
parent
1d4f383e8d
commit
fd94bf51c7
3 changed files with 5 additions and 4 deletions
BIN
resources/assets/fm/textures/blocks/iron_block.png
Normal file
BIN
resources/assets/fm/textures/blocks/iron_block.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 333 B |
BIN
resources/assets/fm/textures/blocks/obsidian.png
Normal file
BIN
resources/assets/fm/textures/blocks/obsidian.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 489 B |
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue