From eb61eeef48605dacf64ebbc2f27065bc9d337f5c Mon Sep 17 00:00:00 2001 From: Astoria Date: Fri, 17 Mar 2023 22:20:27 -0500 Subject: [PATCH] Fix actually using the mod --- .../brokenmoon/afloydironchest/mixin/MixinEntityPlayerSP.java | 3 ++- src/main/resources/fabric.mod.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/brokenmoon/afloydironchest/mixin/MixinEntityPlayerSP.java b/src/main/java/net/brokenmoon/afloydironchest/mixin/MixinEntityPlayerSP.java index d56fda3..1f11b2a 100644 --- a/src/main/java/net/brokenmoon/afloydironchest/mixin/MixinEntityPlayerSP.java +++ b/src/main/java/net/brokenmoon/afloydironchest/mixin/MixinEntityPlayerSP.java @@ -1,5 +1,6 @@ package net.brokenmoon.afloydironchest.mixin; +import net.brokenmoon.afloydironchest.MixinInterfaces.IEntityPlayerSP; import net.brokenmoon.afloydironchest.gui.GuiDiamondChest; import net.brokenmoon.afloydironchest.gui.GuiIronChest; import net.minecraft.client.Minecraft; @@ -8,7 +9,7 @@ import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; @Mixin(value = EntityPlayerSP.class, remap = false) -public class MixinEntityPlayerSP { +public class MixinEntityPlayerSP implements IEntityPlayerSP { @Shadow protected Minecraft mc; public void displayGUIIronChest(IInventory iinventory) { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index a62f025..09d13c6 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -32,7 +32,8 @@ }, "custom": { "loom:injected_interfaces": { - "net/minecraft/src/EntityPlayerSP": ["net/brokenmoon/afloydironchest/MixinInterfaces/IEntityPlayerSP"] + "net/minecraft/src/EntityPlayerSP": ["net/brokenmoon/afloydironchest/MixinInterfaces/IEntityPlayerSP"], + "net/minecraft/src/EntityPlayerMP": ["net/brokenmoon/afloydironchest/MixinInterfaces/IEntityPlayerMP"] } } }