0

Reverse version-check logic

This commit is contained in:
gmcnew
2018-08-02 02:28:36 +00:00
parent 9427566fec
commit bcc0027baa

View File

@@ -123,12 +123,12 @@ class World(object):
# Check for versions of minecraft after the 17w47a changes
if 'Version' in data:
version = int(data['Version']["Id"])
if version >= 1452:
if version < 1519:
raise UnsupportedVersion(
"Sorry, This version of Minecraft-Overviewer only works "
"with versions of Minecraft 1.12 and under\n"
"This is due to a change in the map chunk format that "
"happened in snapshot 17w47a")
"with versions of Minecraft 1.13 and newer\n"
"This is due to a change in the map chunk format and changes "
"to texture names")
# This isn't much data, around 15 keys and values for vanilla worlds.
self.leveldat = data