diff options
Diffstat (limited to 'src/main/java/makamys/neodymium/Compat.java')
-rw-r--r-- | src/main/java/makamys/neodymium/Compat.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/makamys/neodymium/Compat.java b/src/main/java/makamys/neodymium/Compat.java new file mode 100644 index 0000000..7410928 --- /dev/null +++ b/src/main/java/makamys/neodymium/Compat.java @@ -0,0 +1,17 @@ +package makamys.neodymium; + +import com.falsepattern.triangulator.api.ToggleableTessellator; +import cpw.mods.fml.common.Loader; +import net.minecraft.client.renderer.Tessellator; + +public class Compat { + public static void applyCompatibilityTweaks() { + if (Loader.isModLoaded("triangulator")) { + disableTriangulator(); + } + } + + private static void disableTriangulator() { + ((ToggleableTessellator)Tessellator.instance).disableTriangulator(); + } +} |