From 1c39d8406fb1fa956b793d766c14de84025cf4ab Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 23 Mar 2023 14:39:21 +0100 Subject: Throw error if unknown render object --- src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index e7aa2b475..2697259dd 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -520,7 +520,7 @@ object RenderUtils { any.renderOnScreen(isX.toFloat(), isY.toFloat(), itemScale) offsetX += 12 } else { - println("unknown render object: $any") + throw RuntimeException("Unknown render object: $any") } } } -- cgit