mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-16 03:03:43 +01:00
Implement GuiBlockModelRenderBuilder tinting
This commit is contained in:
parent
1afab1dd51
commit
5bd6110d59
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,6 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.util.IItemProvider;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import net.minecraftforge.client.model.data.EmptyModelData;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
public class GuiGameElement {
|
||||
|
@ -173,7 +172,8 @@ public class GuiGameElement {
|
|||
|
||||
protected void renderModel(BlockRendererDispatcher blockRenderer, IRenderTypeBuffer.Impl buffer,
|
||||
RenderType renderType, IVertexBuilder vb, MatrixStack ms) {
|
||||
Vec3d rgb = ColorHelper.getRGB(color);
|
||||
int color = Minecraft.getInstance().getBlockColors().getColor(blockState, null, null, 0);
|
||||
Vec3d rgb = ColorHelper.getRGB(color == -1 ? this.color : color);
|
||||
blockRenderer.getBlockModelRenderer()
|
||||
.renderModel(ms.peek(), vb, blockState, blockmodel, (float) rgb.x, (float) rgb.y, (float) rgb.z,
|
||||
0xF000F0, OverlayTexture.DEFAULT_UV, VirtualEmptyModelData.INSTANCE);
|
||||
|
|
Loading…
Reference in a new issue