diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-08 11:25:04 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-08 11:25:04 +0200 |
| commit | 93daeb6ad7d018ce0527aa54198d69ee1ed13f65 (patch) | |
| tree | 155e193633130c890deed90e3226d22959c63c63 /src/main/java/at/hannibal2/skyhanni/data | |
| parent | f9cafb766115d5342f7d7e1f8b9e3a56504f0273 (diff) | |
| download | skyhanni-93daeb6ad7d018ce0527aa54198d69ee1ed13f65.tar.gz skyhanni-93daeb6ad7d018ce0527aa54198d69ee1ed13f65.tar.bz2 skyhanni-93daeb6ad7d018ce0527aa54198d69ee1ed13f65.zip | |
fixed english spelling
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/GuiData.kt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt index c51e4cccc..782f3224a 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt @@ -21,21 +21,21 @@ import org.lwjgl.input.Keyboard @SkyHanniModule object GuiData { - var preDrawEventCanceled = false + var preDrawEventCancelled = false @SubscribeEvent(priority = EventPriority.HIGH) fun onNeuRenderEvent(event: NEURenderEvent) { - if (preDrawEventCanceled) event.cancel() + if (preDrawEventCancelled) event.cancel() } @SubscribeEvent(priority = EventPriority.HIGH) fun onClick(event: GuiContainerEvent.SlotClickEvent) { - if (preDrawEventCanceled) event.cancel() + if (preDrawEventCancelled) event.cancel() } @SubscribeEvent(priority = EventPriority.HIGH) fun onGuiClick(event: GuiScreenEvent.MouseInputEvent.Pre) { - if (preDrawEventCanceled) event.isCanceled = true + if (preDrawEventCancelled) event.isCanceled = true } @SubscribeEvent(priority = EventPriority.HIGH) @@ -44,31 +44,31 @@ object GuiData { Keyboard.KEY_ESCAPE to it.keyBindInventory.keyCode } if (escKey.isKeyHeld() || invKey.isKeyHeld()) return - if (preDrawEventCanceled) event.isCanceled = true + if (preDrawEventCancelled) event.isCanceled = true } @SubscribeEvent fun onInventoryClose(event: InventoryCloseEvent) { DelayedRun.runNextTick { if (Minecraft.getMinecraft().currentScreen !is GuiChest) { - preDrawEventCanceled = false + preDrawEventCancelled = false } } } @SubscribeEvent fun onWorldChange(event: LorenzWorldChangeEvent) { - preDrawEventCanceled = false + preDrawEventCancelled = false } @HandleEvent fun onDisconnect(event: ClientDisconnectEvent) { - preDrawEventCanceled = false + preDrawEventCancelled = false } @SubscribeEvent(priority = EventPriority.LOW) fun onGuiOpen(event: GuiOpenEvent) { - if (preDrawEventCanceled) { + if (preDrawEventCancelled) { NEUApi.setInventoryButtonsToDisabled() } } |
