diff --git a/app/src/main/java/sib/bedohswe/hellofabric/modloader/GamePatchImpl.java b/app/src/main/java/sib/bedohswe/hellofabric/modloader/GamePatchImpl.java index 60784c9..1e407b8 100644 --- a/app/src/main/java/sib/bedohswe/hellofabric/modloader/GamePatchImpl.java +++ b/app/src/main/java/sib/bedohswe/hellofabric/modloader/GamePatchImpl.java @@ -1,12 +1,12 @@ package sib.bedohswe.hellofabric.modloader; -import com.google.j2objc.annotations.Property; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.ModInitializer; import net.fabricmc.loader.impl.FabricLoaderImpl; import net.fabricmc.loader.impl.game.patch.GamePatch; import net.fabricmc.loader.impl.launch.FabricLauncher; import org.objectweb.asm.Opcodes; +import org.objectweb.asm.Type; import org.objectweb.asm.tree.*; import java.nio.file.Path; @@ -37,7 +37,7 @@ public class GamePatchImpl extends GamePatch { initMethod.instructions.insertBefore(initMethod.instructions.getFirst(), new MethodInsnNode( Opcodes.INVOKESTATIC, - "sib/bedohswe/hellofabric/modloader/GamePatchImpl", + Type.getInternalName(GamePatchImpl.class), "initClient", "()V", false)); @@ -46,4 +46,4 @@ public class GamePatchImpl extends GamePatch { } -} \ No newline at end of file +}