Make the code easier to refactor.
This commit is contained in:
parent
0b11a7795e
commit
64cabf0dee
@ -1,12 +1,12 @@
|
|||||||
package sib.bedohswe.hellofabric.modloader;
|
package sib.bedohswe.hellofabric.modloader;
|
||||||
|
|
||||||
import com.google.j2objc.annotations.Property;
|
|
||||||
import net.fabricmc.api.ClientModInitializer;
|
import net.fabricmc.api.ClientModInitializer;
|
||||||
import net.fabricmc.api.ModInitializer;
|
import net.fabricmc.api.ModInitializer;
|
||||||
import net.fabricmc.loader.impl.FabricLoaderImpl;
|
import net.fabricmc.loader.impl.FabricLoaderImpl;
|
||||||
import net.fabricmc.loader.impl.game.patch.GamePatch;
|
import net.fabricmc.loader.impl.game.patch.GamePatch;
|
||||||
import net.fabricmc.loader.impl.launch.FabricLauncher;
|
import net.fabricmc.loader.impl.launch.FabricLauncher;
|
||||||
import org.objectweb.asm.Opcodes;
|
import org.objectweb.asm.Opcodes;
|
||||||
|
import org.objectweb.asm.Type;
|
||||||
import org.objectweb.asm.tree.*;
|
import org.objectweb.asm.tree.*;
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
@ -37,7 +37,7 @@ public class GamePatchImpl extends GamePatch {
|
|||||||
|
|
||||||
initMethod.instructions.insertBefore(initMethod.instructions.getFirst(), new MethodInsnNode(
|
initMethod.instructions.insertBefore(initMethod.instructions.getFirst(), new MethodInsnNode(
|
||||||
Opcodes.INVOKESTATIC,
|
Opcodes.INVOKESTATIC,
|
||||||
"sib/bedohswe/hellofabric/modloader/GamePatchImpl",
|
Type.getInternalName(GamePatchImpl.class),
|
||||||
"initClient",
|
"initClient",
|
||||||
"()V",
|
"()V",
|
||||||
false));
|
false));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user