aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-27 18:30:19 +0200
committerGitHub <noreply@github.com>2022-06-27 18:30:19 +0200
commitda152e5a796a0369127ad4fb2b81715a0ec9cbd7 (patch)
tree9a9bd2dbc5db55025a33ef120e9dd7b6148faf22 /src/main/java/makamys
parent6873c69828d5b00288fadbb49a8c63366e5256a9 (diff)
parent0f551cffc3b66d21c07ced57e2ce541a9afae40e (diff)
downloadNeodymium-da152e5a796a0369127ad4fb2b81715a0ec9cbd7.tar.gz
Neodymium-da152e5a796a0369127ad4fb2b81715a0ec9cbd7.tar.bz2
Neodymium-da152e5a796a0369127ad4fb2b81715a0ec9cbd7.zip
Merge pull request #3 from FalsePattern/triangulator-compat
Triangulator compat
Diffstat (limited to 'src/main/java/makamys')
-rw-r--r--src/main/java/makamys/neodymium/Compat.java17
-rw-r--r--src/main/java/makamys/neodymium/Neodymium.java1
2 files changed, 18 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();
+ }
+}
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