File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ repositories {
1414}
1515
1616dependencies {
17- compileOnly(" com.github.weave-mc:weave-loader:2e22997d5b " )
17+ compileOnly(" com.github.weave-mc:weave-loader:71eb5ec6f2 " )
1818
1919 compileOnly(" org.spongepowered:mixin:0.8.5" )
2020}
Original file line number Diff line number Diff line change 11package com .example .mod ;
22
33import club .maxstats .weave .loader .api .ModInitializer ;
4- import club .maxstats .weave .loader .api .HookManager ;
54import club .maxstats .weave .loader .api .command .CommandBus ;
65import club .maxstats .weave .loader .api .event .*;
76import com .example .mod .command .TestCommand ;
8- import com .example .mod .hook .MinecraftHook ;
97import com .example .mod .listener .RenderGameOverlayListener ;
108import net .minecraft .client .Minecraft ;
119import net .minecraft .util .ChatComponentText ;
1210import org .lwjgl .input .Keyboard ;
1311
1412public class ExampleMod implements ModInitializer {
1513 @ Override
16- public void preInit ( HookManager hookManager ) {
14+ public void init ( ) {
1715 System .out .println ("Initializing ExampleMod!" );
1816
19- hookManager .register (new MinecraftHook ());
2017 CommandBus .register (new TestCommand ());
2118
2219 EventBus .subscribe (KeyboardEvent .class , e -> {
Original file line number Diff line number Diff line change 44 ],
55 "entrypoints" : [
66 " com.example.mod.ExampleMod"
7+ ],
8+ "hooks" : [
9+ " com.example.mod.hook.MinecraftHook"
710 ]
811}
You can’t perform that action at this time.
0 commit comments