Skip to content

Commit

Permalink
Remove canvas image type requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Dec 14, 2024
1 parent 812dcb8 commit 5735dd1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nova/src/main/kotlin/xyz/xenondevs/nova/ui/menu/Canvas.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down

0 comments on commit 5735dd1

Please sign in to comment.