diff --git a/lib/Properties.hs b/lib/Properties.hs
index 4e8c7d9989c6812008816c61bf5ead84c5492c32..9a22bb500b070752a2022f5906a0630a0f06f0df 100644
--- a/lib/Properties.hs
+++ b/lib/Properties.hs
@@ -168,7 +168,7 @@ checkTileset = do
   unless (tilesetTilewidth tileset == 32 && tilesetTileheight tileset == 32)
     $ complain "Tilesets must have tile size 32x32."
 
-  unless (tilesetImageheight tileset < 4096 && tilesetImagewidth tileset < 4096)
+  when (tilesetImageheight tileset > 4096 || tilesetImagewidth tileset > 4096)
     $ warn "Tilesets should not be larger than 4096x4096 pixels in total."
 
   when (isJust (tilesetSource tileset))