From b390c2d44aa8923cebb389f1e25287bd4e56a2c8 Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Mon, 13 Sep 2021 06:37:13 +0300 Subject: [PATCH] Fix levels. --- map_machine/constructor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map_machine/constructor.py b/map_machine/constructor.py index 873a032..29e6cb5 100644 --- a/map_machine/constructor.py +++ b/map_machine/constructor.py @@ -172,7 +172,7 @@ class Constructor: elif self.configuration.level == "underground": self.check_level = lambda x: not check_level_overground(x) else: - self.check_level = lambda x: not check_level_number( + self.check_level = lambda x: check_level_number( x, float(self.configuration.level) )