aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-03-05 13:40:37 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-03-05 13:40:37 +0200
commit6f84ebf371a7aa8728375c0633b19e489c67de5e (patch)
tree0fcf1e559f15d5b4f4ad495d78a78fba35eb091e /src
parent7a6a31c7c5040959b47f55ec96fb614dfb4d8efb (diff)
downloadCITResewn-6f84ebf371a7aa8728375c0633b19e489c67de5e.tar.gz
CITResewn-6f84ebf371a7aa8728375c0633b19e489c67de5e.tar.bz2
CITResewn-6f84ebf371a7aa8728375c0633b19e489c67de5e.zip
Fixed Fabric API resources integration
Diffstat (limited to 'src')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/mixin/GroupResourcePackAccessor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/GroupResourcePackAccessor.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/GroupResourcePackAccessor.java
index 8263be8..8acd336 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/GroupResourcePackAccessor.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/GroupResourcePackAccessor.java
@@ -3,6 +3,7 @@ package shcm.shsupercm.fabric.citresewn.mixin;
import net.fabricmc.fabric.impl.resource.loader.GroupResourcePack;
import net.minecraft.resource.ResourcePack;
import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.gen.Accessor;
import shcm.shsupercm.fabric.citresewn.pack.PackParser;
@@ -13,8 +14,9 @@ import java.util.List;
* Used by Fabric API to bundle all mods' resources into a single pack.
* @see PackParser#forEachPack
*/
-@Mixin(GroupResourcePack.class)
+@Pseudo
+@Mixin(value = GroupResourcePack.class, remap = false)
public interface GroupResourcePackAccessor {
- @Accessor
+ @Accessor(remap = false)
List<ResourcePack> getPacks();
}