Skip to content

Commit

Permalink
Extended Vertex Format checker to include Forge Pipeline as well as o…
Browse files Browse the repository at this point in the history
…ptifine.
  • Loading branch information
AlgorithmX2 committed Mar 25, 2017
1 parent ec90ce2 commit b5f65a2
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -27,6 +27,7 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeModContainer;
import net.minecraftforge.common.property.IExtendedBlockState;
import net.minecraftforge.fml.client.FMLClientHandler;

Expand Down Expand Up @@ -103,12 +104,12 @@ public static ChiseledBlockBaked getCachedModel(

private static VertexFormat getModelFormat()
{
return hasOptifine() ? DefaultVertexFormats.ITEM : ChiselsAndBitsBakedQuad.VERTEX_FORMAT;
return ForgePipelineDisabled() ? DefaultVertexFormats.ITEM : ChiselsAndBitsBakedQuad.VERTEX_FORMAT;
}

private static boolean hasOptifine()
private static boolean ForgePipelineDisabled()
{
return FMLClientHandler.instance().hasOptifine();
return FMLClientHandler.instance().hasOptifine() || !ForgeModContainer.forgeLightPipelineEnabled;
}

private static ChiseledBlockBaked getCachedModel(
Expand Down

0 comments on commit b5f65a2

Please sign in to comment.