From eeb78b3f0a634d58258873e57194ba41af3d3711 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 14 Dec 2021 00:00:44 +0100 Subject: startLayer can actually be set to `false` (in which case it just doesn't do anything at all) --- lib/Properties.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Properties.hs b/lib/Properties.hs index bb18499..db4908e 100644 --- a/lib/Properties.hs +++ b/lib/Properties.hs @@ -343,10 +343,9 @@ checkTileLayerProperty p@(Property name _value) = case name of "startLayer" -> do forbidEmptyLayer layer <- askContext - offersEntrypoint $ layerName layer unwrapBool p $ \case - True -> pure () - False -> complain "property \"startLayer\" must be set to true." + True -> offersEntrypoint $ layerName layer + False -> warn "property \"startLayer\" is useless if set to false." "silent" -> do isBool p uselessEmptyLayer -- cgit v1.2.3