diff options
author | ingle <inglettronald@gmail.com> | 2022-10-08 23:03:13 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-10-08 23:03:13 -0500 |
commit | f9b44615f23d1417471da13ca230d6b790ce421a (patch) | |
tree | 2cd9d1737d3346f790dc7829b9e1b8c37e4b45ed /src/main/java | |
parent | 704d0de8ddb4c4aa71033463dc4a9df1e9afd5ab (diff) | |
download | DulkirMod-f9b44615f23d1417471da13ca230d6b790ce421a.tar.gz DulkirMod-f9b44615f23d1417471da13ca230d6b790ce421a.tar.bz2 DulkirMod-f9b44615f23d1417471da13ca230d6b790ce421a.zip |
+ hopefully add cool keybinds
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinSkytils.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinSkytils.java b/src/main/java/dulkirmod/mixins/MixinSkytils.java new file mode 100644 index 0000000..24de061 --- /dev/null +++ b/src/main/java/dulkirmod/mixins/MixinSkytils.java @@ -0,0 +1,21 @@ +package dulkirmod.mixins; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Pseudo; +import org.spongepowered.asm.mixin.Shadow; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; + +@Pseudo +@Mixin(targets = "gg.skytils.skytilsmod.core.Config", remap = false) +public class MixinSkytils { + + @Shadow + private static boolean waterBoardSolver; + + @Inject(method = "getWaterBoardSolver", at = @At("HEAD"), cancellable = true) + private static void changeValue(CallbackInfoReturnable<Boolean> cir) { + cir.setReturnValue(false); + } +} |