From 158a0d5de5176e91ea75bb88a4bd03e80494dad2 Mon Sep 17 00:00:00 2001 From: mithe24 Date: Fri, 23 May 2025 20:01:04 +0200 Subject: Update Sprite.java --- pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pacman/view') diff --git a/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java b/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java index 258a8f3..c1c487a 100644 --- a/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java +++ b/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java @@ -51,10 +51,10 @@ public class Sprite { throw new IllegalArgumentException("image must not be be null"); } if (x < 0 || y < 0) { - throw new IllegalArgumentException("x and y must be a positive number"); + throw new IllegalArgumentException("x and y must be greater than or equal 0"); } if (width < 0 || height < 0) { - throw new IllegalArgumentException("width and height must be a positive number"); + throw new IllegalArgumentException("width and height must be greater than or equal 0"); } this.image = image; -- cgit v1.2.3-70-g09d2