From bcc0027baa3c768fab9baee115b7cc07f4103b92 Mon Sep 17 00:00:00 2001 From: gmcnew Date: Thu, 2 Aug 2018 02:28:36 +0000 Subject: [PATCH] Reverse version-check logic --- overviewer_core/world.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index d012d32..1b88e0c 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -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