浏览代码

Registries#getId should be static

shedaniel 4 年之前
父节点
当前提交
d50135b5d9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      common/src/main/java/me/shedaniel/architectury/registry/Registries.java

+ 2 - 2
common/src/main/java/me/shedaniel/architectury/registry/Registries.java

@@ -53,7 +53,7 @@ public final class Registries {
      * Fabric: Use registry
      */
     @Nullable
-    public <T> ResourceLocation getId(T object, ResourceKey<net.minecraft.core.Registry<T>> fallback) {
+    public static <T> ResourceLocation getId(T object, ResourceKey<net.minecraft.core.Registry<T>> fallback) {
         return IMPL.getId(object, fallback);
     }
     
@@ -62,7 +62,7 @@ public final class Registries {
      * Fabric: Use registry
      */
     @Nullable
-    public <T> ResourceLocation getId(T object, net.minecraft.core.Registry<T> fallback) {
+    public static <T> ResourceLocation getId(T object, net.minecraft.core.Registry<T> fallback) {
         return IMPL.getId(object, fallback);
     }