From 6274d77d1f3d7be1587ed40badfe2bb309a7e4b5 Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Mon, 19 Aug 2024 11:21:30 -0700
Subject: [PATCH] Document and improve mod compatibility
---
README.md | 8 +++++++
.../resources/META-INF/neoforge.mods.toml | 22 +++++++++++++++++++
.../StateHolderMixin.java | 5 ++++-
.../ZeroCollidingReferenceStateTable.java | 3 ++-
4 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 719a0f4a..e3741f06 100644
--- a/README.md
+++ b/README.md
@@ -12,5 +12,13 @@ patches. Listed below are notable patches:
- Random ticking optimisations
- [Starlight](https://github.com/PaperMC/Starlight/)
+## Mod Compatibility
+| Mod | Compatibility |
+|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| FerriteCore | 📝 requires config changes
In `config/ferritecore-mixin.toml`:
Set `replaceNeighborLookup` and `replacePropertyMap` to `false` |
+| ModernFix | 📝 requires config changes
In `config/modernfix-mixins.properties`:
Add `mixin.bugfix.paper_chunk_patches=false` |
+| Lithium | ❌ incompatible |
+| C2ME | ❌ incompatible |
+
## Contact
[Discord](https://discord.gg/tuinity)
diff --git a/neoforge/src/main/resources/META-INF/neoforge.mods.toml b/neoforge/src/main/resources/META-INF/neoforge.mods.toml
index 1c657985..68097c67 100644
--- a/neoforge/src/main/resources/META-INF/neoforge.mods.toml
+++ b/neoforge/src/main/resources/META-INF/neoforge.mods.toml
@@ -28,6 +28,28 @@ versionRange = "[1.21,1.21.2)"
ordering = "NONE"
side = "BOTH"
+[[dependencies.moonrise]]
+modId = "starlight"
+type = "incompatible"
+
+[[dependencies.moonrise]]
+modId = "lithium"
+type = "incompatible"
+
+[[dependencies.moonrise]]
+# unofficial lithium port
+modId = "canary"
+type = "incompatible"
+
+[[dependencies.moonrise]]
+# unofficial lithium port
+modId = "radium"
+type = "incompatible"
+
+[[dependencies.moonrise]]
+modId = "c2me"
+type = "incompatible"
+
[[mixins]]
config = "moonrise.mixins.json"
diff --git a/src/main/java/ca/spottedleaf/moonrise/mixin/blockstate_propertyaccess/StateHolderMixin.java b/src/main/java/ca/spottedleaf/moonrise/mixin/blockstate_propertyaccess/StateHolderMixin.java
index 6baa5176..c8377b84 100644
--- a/src/main/java/ca/spottedleaf/moonrise/mixin/blockstate_propertyaccess/StateHolderMixin.java
+++ b/src/main/java/ca/spottedleaf/moonrise/mixin/blockstate_propertyaccess/StateHolderMixin.java
@@ -65,6 +65,8 @@ private void init(final CallbackInfo ci) {
)
)
private void loadTable(final Map