From 1181b4a7bdb7cd46144d5550abcd56e2ba284b4d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 9 Jun 2024 19:55:28 +0200 Subject: more small editorconfig changes, code cleanup in random files --- .../at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt | 1 - src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt | 3 ++- src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt index 7622ac496..3f8f803b0 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt @@ -9,7 +9,6 @@ import net.minecraft.util.BlockPos import net.minecraft.world.IBlockAccess import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable - // Taken and modified from Skytils fun modifyGetModelFromBlockState( blockRendererDispatcher: BlockRendererDispatcher, diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt index dfd47464d..9cd88d194 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt @@ -26,7 +26,8 @@ fun tryToReplaceScoreboardLine(text: String): String? { return tryToReplaceScoreboardLineHarder(text) } catch (t: Throwable) { ErrorManager.logErrorWithData( - t, "Error while changing the scoreboard text.", + t, + "Error while changing the scoreboard text.", "text" to text ) return text diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt index 6ed537234..3c3c7fd70 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt @@ -5,4 +5,4 @@ import net.minecraft.item.ItemStack fun renderToolTip(stack: ItemStack) { RenderItemTooltipEvent(stack).postAndCatch() -} \ No newline at end of file +} -- cgit