diff options
author | ingle <inglettronald@gmail.com> | 2022-10-09 00:42:45 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-10-09 00:42:45 -0500 |
commit | 9df33639c328bac68aa40109b1fa3a6eb069c9c5 (patch) | |
tree | 99f19a632814e54185e656350e8fe2037aa1200b | |
parent | f9b44615f23d1417471da13ca230d6b790ce421a (diff) | |
download | DulkirMod-9df33639c328bac68aa40109b1fa3a6eb069c9c5.tar.gz DulkirMod-9df33639c328bac68aa40109b1fa3a6eb069c9c5.tar.bz2 DulkirMod-9df33639c328bac68aa40109b1fa3a6eb069c9c5.zip |
+ hopefully add cool keybinds
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinSkytils.java | 21 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/DulkirMod.kt | 3 | ||||
-rw-r--r-- | src/main/resources/mixins.dulkirmod.json | 1 |
3 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinSkytils.java b/src/main/java/dulkirmod/mixins/MixinSkytils.java deleted file mode 100644 index 24de061..0000000 --- a/src/main/java/dulkirmod/mixins/MixinSkytils.java +++ /dev/null @@ -1,21 +0,0 @@ -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); - } -} diff --git a/src/main/kotlin/dulkirmod/DulkirMod.kt b/src/main/kotlin/dulkirmod/DulkirMod.kt index b03b770..85d89aa 100644 --- a/src/main/kotlin/dulkirmod/DulkirMod.kt +++ b/src/main/kotlin/dulkirmod/DulkirMod.kt @@ -97,7 +97,6 @@ class DulkirMod { fun onKey(event: KeyInputEvent) { if (keyBinds[0].isPressed) display = config.gui() if (keyBinds[1].isPressed) Config.noReverse3rdPerson = !Config.noReverse3rdPerson - if (keyBinds[2].isPressed) skytilsWaterSolver = !skytilsWaterSolver } companion object { @@ -109,14 +108,12 @@ class DulkirMod { val mc: Minecraft = Minecraft.getMinecraft() var config = Config var display: GuiScreen? = null - var skytilsWaterSolver = false val scope = CoroutineScope(EmptyCoroutineContext) val titleUtils = TitleUtils() val keyBinds = arrayOf( KeyBinding("Open Settings", Keyboard.KEY_RSHIFT, "Dulkir Mod"), KeyBinding("Toggle Selfie Setting", Keyboard.KEY_NONE, "Dulkir Mod"), - KeyBinding("Toggle Skytils WaterSolver", Keyboard.KEY_NONE, "Dulkir Mod"), ) } diff --git a/src/main/resources/mixins.dulkirmod.json b/src/main/resources/mixins.dulkirmod.json index 34294ed..4921d12 100644 --- a/src/main/resources/mixins.dulkirmod.json +++ b/src/main/resources/mixins.dulkirmod.json @@ -10,7 +10,6 @@ "mixins": [ "MixinEntity", "MixinEntityLivingBase", - "MixinSkytils", "MixinWorld" ] } |