0

world: fix warnings regarding unknown region types

This commit is contained in:
Nicolas F
2021-06-10 17:23:23 +02:00
parent 1beb5799b5
commit 81bfbc0a15

View File

@@ -274,8 +274,10 @@ class RegionSet(object):
elif self.rel == "region": elif self.rel == "region":
# this is the main world # this is the main world
self.type = None self.type = None
elif self.rel == "entities":
self.type = "entities"
else: else:
logging.warning("Unknown region type in %r", regiondir) logging.warning("Unknown region type in %r, rel %r", regiondir, self.rel)
self.type = "__unknown" self.type = "__unknown"
logging.debug("Scanning regions. Type is %r" % self.type) logging.debug("Scanning regions. Type is %r" % self.type)