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 | |
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')
3 files changed, 12 insertions, 13 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() } } diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt index 72f4a2e90..2572b969f 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt @@ -37,10 +37,10 @@ class GuiContainerHook(guiAny: Any) { if (!SkyHanniDebugsAndTests.globalRender) return if (GuiContainerEvent.BeforeDraw(gui, gui.inventorySlots, mouseX, mouseY, partialTicks).postAndCatch()) { NEUApi.setInventoryButtonsToDisabled() - GuiData.preDrawEventCanceled = true + GuiData.preDrawEventCancelled = true ci.cancel() } else { - GuiData.preDrawEventCanceled = false + GuiData.preDrawEventCancelled = false } } diff --git a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt index 070d7db10..0d830e5c1 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt @@ -27,7 +27,6 @@ import at.hannibal2.skyhanni.utils.renderables.RenderableUtils.renderXYAligned import at.hannibal2.skyhanni.utils.renderables.RenderableUtils.renderYAligned import at.hannibal2.skyhanni.utils.shader.ShaderManager import io.github.notenoughupdates.moulconfig.gui.GuiScreenElementWrapper -import io.github.moulberry.notenoughupdates.util.Utils import net.minecraft.client.Minecraft import net.minecraft.client.gui.Gui import net.minecraft.client.gui.GuiIngameMenu @@ -240,7 +239,7 @@ interface Renderable { val inMenu = Minecraft.getMinecraft().currentScreen !is GuiIngameMenu val isGuiPositionEditor = guiScreen !is GuiPositionEditor val isNotInSignAndOnSlot = if (guiScreen !is GuiEditSign && guiScreen !is GuideGUI<*>) { - ToolTipData.lastSlot == null || GuiData.preDrawEventCanceled + ToolTipData.lastSlot == null || GuiData.preDrawEventCancelled } else true val isConfigScreen = guiScreen !is GuiScreenElementWrapper |