Make the code easier to refactor.

This commit is contained in:
bʰedoh₂ swé 2026-08-16 18:42:56 +03:00
parent 0b11a7795e
commit 64cabf0dee

View File

@ -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));