From e0b8f61b6e17f37cb5c4d875bc23f7021d350e70 Mon Sep 17 00:00:00 2001 From: UnicornFreedom Date: Sat, 2 Aug 2025 23:05:56 +0200 Subject: [PATCH] Get rid of assembly errors and warnings --- lib/ocelot-brain | 2 +- src/main/scala/ocelot/desktop/graphics/IconSource.scala | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ocelot-brain b/lib/ocelot-brain index 9cbd03d..495332f 160000 --- a/lib/ocelot-brain +++ b/lib/ocelot-brain @@ -1 +1 @@ -Subproject commit 9cbd03d6be9c5e76d7f6aa01d28e366a6be7b2b0 +Subproject commit 495332f2d60083403cdf0f501a563fcb54841142 diff --git a/src/main/scala/ocelot/desktop/graphics/IconSource.scala b/src/main/scala/ocelot/desktop/graphics/IconSource.scala index 810e49c..c9c9d1e 100644 --- a/src/main/scala/ocelot/desktop/graphics/IconSource.scala +++ b/src/main/scala/ocelot/desktop/graphics/IconSource.scala @@ -27,6 +27,9 @@ object IconSource { IconSource(s"icons/Tier${tier.id}") } + val SideNoneIcon: IconSource = IconSource("icons/SideNone") + val SideAnyIcon: IconSource = IconSource("icons/SideAny") + val SideUndefinedIcon: IconSource = IconSource("icons/SideUndefined") val SideIcon: Direction => IconSource = { case Down => IconSource(s"icons/SideDown") case Up => IconSource(s"icons/SideUp") @@ -34,10 +37,8 @@ object IconSource { case South => IconSource(s"icons/SideSouth") case West => IconSource(s"icons/SideWest") case East => IconSource(s"icons/SideEast") + case _ => SideUndefinedIcon } - val SideNoneIcon: IconSource = IconSource("icons/SideNone") - val SideAnyIcon: IconSource = IconSource("icons/SideAny") - val SideUndefinedIcon: IconSource = IconSource("icons/SideUndefined") object Items { val Cpu: Tier => IconSource = { tier =>