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