diff options
Diffstat (limited to 'src/main/java/dulkirmod/mixins')
-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); + } +} |