aboutsummaryrefslogtreecommitdiff
path: root/fabric/src
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2024-06-17 00:07:02 +0900
committershedaniel <daniel@shedaniel.me>2024-06-17 00:07:02 +0900
commit667c7993dcea8b09bdffcad9956b353f054ad6e2 (patch)
treea8952cd4dd6465919805f159dee66434dc008e22 /fabric/src
parentde36cf8cbce35d6fc5f879651c057fa143e72d89 (diff)
downloadRoughlyEnoughItems-667c7993dcea8b09bdffcad9956b353f054ad6e2.tar.gz
RoughlyEnoughItems-667c7993dcea8b09bdffcad9956b353f054ad6e2.tar.bz2
RoughlyEnoughItems-667c7993dcea8b09bdffcad9956b353f054ad6e2.zip
Update to 1.21
Diffstat (limited to 'fabric/src')
-rw-r--r--fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinTagManager.java3
-rw-r--r--fabric/src/main/resources/error_notifier.json4
-rw-r--r--fabric/src/main/resources/fabric.mod.json2
3 files changed, 5 insertions, 4 deletions
diff --git a/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinTagManager.java b/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinTagManager.java
index c872f4395..c87b2073e 100644
--- a/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinTagManager.java
+++ b/fabric/src/main/java/me/shedaniel/rei/mixin/fabric/MixinTagManager.java
@@ -26,6 +26,7 @@ package me.shedaniel.rei.mixin.fabric;
import me.shedaniel.rei.plugin.common.displays.tag.TagNodes;
import net.minecraft.core.Registry;
import net.minecraft.core.RegistryAccess;
+import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.server.packs.resources.ResourceManager;
import net.minecraft.tags.TagManager;
@@ -42,6 +43,6 @@ public abstract class MixinTagManager<T> {
@Inject(method = "createLoader", at = @At("HEAD"))
private void load(ResourceManager resourceManager, Executor executor, RegistryAccess.RegistryEntry<T> registryEntry, CallbackInfoReturnable<CompletableFuture<TagManager.LoadResult<T>>> cir) {
ResourceKey<? extends Registry<T>> resourceKey = registryEntry.key();
- TagNodes.TAG_DIR_MAP.put(TagManager.getTagDir(resourceKey), resourceKey);
+ TagNodes.TAG_DIR_MAP.put(Registries.tagsDirPath(resourceKey), resourceKey);
}
}
diff --git a/fabric/src/main/resources/error_notifier.json b/fabric/src/main/resources/error_notifier.json
index 6c38714b3..656895b7a 100644
--- a/fabric/src/main/resources/error_notifier.json
+++ b/fabric/src/main/resources/error_notifier.json
@@ -12,14 +12,14 @@
"type": "depends",
"modId": "architectury",
"modName": "Architectury API",
- "versions": ">=12.0.0 <13.0.0",
+ "versions": ">=13.0.0 <14.0.0",
"url": "https://www.curseforge.com/minecraft/mc-mods/architectury-api/"
},
{
"type": "depends",
"modId": "cloth-config2",
"modName": "Cloth Config",
- "versions": ">=14.0.0 <15.0.0",
+ "versions": ">=15.0.0 <16.0.0",
"url": "https://www.curseforge.com/minecraft/mc-mods/cloth-config/"
}
]
diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json
index e0c84f24a..ab7aee27b 100644
--- a/fabric/src/main/resources/fabric.mod.json
+++ b/fabric/src/main/resources/fabric.mod.json
@@ -119,6 +119,6 @@
}
},
"depends": {
- "minecraft": "~1.20-"
+ "minecraft": "~1.21-"
}
}