Skip to content

Commit 44ffb26

Browse files
committed
genpoi: ignore dat files with incomplete player info
This can happen for worlds that are generated by something other than minecraft. Closes overviewer#2055
1 parent 8c4184d commit 44ffb26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

overviewer_core/aux_files/genPOI.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ def handlePlayers(worldpath, filters, markers):
331331
except (IOError, TypeError, KeyError, nbt.CorruptNBTError):
332332
logging.warning("Skipping bad player dat file %r.", playerfile)
333333
continue
334+
if not "_name" in data:
335+
logging.warning("Skipping bad player dat file %r (incomplete player info).", playerfile)
336+
continue
334337

335338
playername = playerfile.split(".")[0]
336339
if isSinglePlayer:

0 commit comments

Comments
 (0)