aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java/me/shedaniel/rei/plugin/common
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 /runtime/src/main/java/me/shedaniel/rei/plugin/common
parentde36cf8cbce35d6fc5f879651c057fa143e72d89 (diff)
downloadRoughlyEnoughItems-667c7993dcea8b09bdffcad9956b353f054ad6e2.tar.gz
RoughlyEnoughItems-667c7993dcea8b09bdffcad9956b353f054ad6e2.tar.bz2
RoughlyEnoughItems-667c7993dcea8b09bdffcad9956b353f054ad6e2.zip
Update to 1.21
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei/plugin/common')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/plugin/common/runtime/DefaultRuntimePlugin.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/plugin/common/runtime/DefaultRuntimePlugin.java b/runtime/src/main/java/me/shedaniel/rei/plugin/common/runtime/DefaultRuntimePlugin.java
index ca1e44846..d38c7130d 100644
--- a/runtime/src/main/java/me/shedaniel/rei/plugin/common/runtime/DefaultRuntimePlugin.java
+++ b/runtime/src/main/java/me/shedaniel/rei/plugin/common/runtime/DefaultRuntimePlugin.java
@@ -48,7 +48,7 @@ import java.util.stream.Stream;
@ApiStatus.Internal
public class DefaultRuntimePlugin implements REIServerPlugin {
- public static final ResourceLocation PLUGIN = new ResourceLocation("roughlyenoughitems", "default_runtime_plugin");
+ public static final ResourceLocation PLUGIN = ResourceLocation.fromNamespaceAndPath("roughlyenoughitems", "default_runtime_plugin");
@Override
public void registerEntryTypes(EntryTypeRegistry registry) {
@@ -66,7 +66,7 @@ public class DefaultRuntimePlugin implements REIServerPlugin {
@Override
public void registerSlotAccessors(SlotAccessorRegistry registry) {
- registry.register(new ResourceLocation("roughlyenoughitems", "vanilla"),
+ registry.register(ResourceLocation.fromNamespaceAndPath("roughlyenoughitems", "vanilla"),
slotAccessor -> slotAccessor instanceof VanillaSlotAccessor,
new SlotAccessorRegistry.Serializer() {
@Override
@@ -86,7 +86,7 @@ public class DefaultRuntimePlugin implements REIServerPlugin {
return tag;
}
});
- registry.register(new ResourceLocation("roughlyenoughitems", "player"),
+ registry.register(ResourceLocation.fromNamespaceAndPath("roughlyenoughitems", "player"),
slotAccessor -> slotAccessor instanceof PlayerInventorySlotAccessor,
new SlotAccessorRegistry.Serializer() {
@Override