From 5735dd1b759e5d56cca5a2fcd6880b2d104bbf1e Mon Sep 17 00:00:00 2001 From: NichtStudioCode <51272202+NichtStudioCode@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:30:13 +0100 Subject: [PATCH] Remove canvas image type requirement --- nova/src/main/kotlin/xyz/xenondevs/nova/ui/menu/Canvas.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/nova/src/main/kotlin/xyz/xenondevs/nova/ui/menu/Canvas.kt b/nova/src/main/kotlin/xyz/xenondevs/nova/ui/menu/Canvas.kt index 7453f7de9f..a9599bfcbd 100644 --- a/nova/src/main/kotlin/xyz/xenondevs/nova/ui/menu/Canvas.kt +++ b/nova/src/main/kotlin/xyz/xenondevs/nova/ui/menu/Canvas.kt @@ -45,7 +45,6 @@ open class Canvas( constructor(image: BufferedImage) : this(DefaultGuiItems.CANVAS, 18, image) init { - require(image.type == BufferedImage.TYPE_INT_ARGB) { "Image needs to be TYPE_INT_ARGB" } require(image.height % itemResolution == 0) { "Image height needs to be divisible by $itemResolution" } require(image.width % itemResolution == 0) { "Image width needs to be divisible by $itemResolution" }