aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project.gradle8
-rw-r--r--src/main/java/makamys/neodymium/Compat.java17
-rw-r--r--src/main/java/makamys/neodymium/Neodymium.java1
3 files changed, 26 insertions, 0 deletions
diff --git a/project.gradle b/project.gradle
index 769901e..a46d772 100644
--- a/project.gradle
+++ b/project.gradle
@@ -7,3 +7,11 @@ jar {
}
apply from: "makalibs.gradle"
+
+repositories {
+ maven { url 'https://maven.falsepattern.com' }
+}
+
+dependencies {
+ compileOnly("com.falsepattern:triangulator-mc1.7.10:1.7.0:api")
+} \ No newline at end of file
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();
+ }
+}
diff --git a/src/main/java/makamys/neodymium/Neodymium.java b/src/main/java/makamys/neodymium/Neodymium.java
index 941a46f..0ec06ce 100644
--- a/src/main/java/makamys/neodymium/Neodymium.java
+++ b/src/main/java/makamys/neodymium/Neodymium.java
@@ -47,6 +47,7 @@ public class Neodymium
@EventHandler
public void preInit(FMLConstructionEvent event) {
MCLib.init();
+ Compat.applyCompatibilityTweaks();
}
@EventHandler