MapVessel.empty_map : remove mapblock at pos 0 as well

- Reported in #9
This commit is contained in:
LeMagnesium 2016-04-06 22:17:15 +02:00
parent 5486478ad7
commit 849c12ca18

View File

@ -509,7 +509,7 @@ class MapVessel:
logger.warning("WARNING: Emptying the entire map of its mapblocks")
try:
self.cur.execute("DELETE from `blocks` WHERE `pos`")
self.cur.execute("DELETE from `blocks` where pos or pos == 0")
except _sql.OperationalError as err:
raise MapError("Error while removing all mapblock : {0}".format(err))