Remove mojang netty hack

Ultimately, people break this anyway when they really want to.
And the breakage is a source of irregularities and problems.

Like people customizing versions while they should update instead.
This commit is contained in:
Petr Mrázek 2017-04-09 02:17:20 +02:00
parent 787c94001e
commit 02eb0569d5
2 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,10 @@ for filename in os.listdir('upstream/mojang/versions'):
mmcLib = MultiMCLibrary(lib.to_json())
specifier = mmcLib.name
ruleHash = None
# ignore the mojang netty hack that prevents connection to select servers they don't like
if specifier.isMojangNetty():
print("Ignoring Mojang netty hack in version", versionFile.version)
continue
if specifier.isLwjgl():
rules = None
if mmcLib.rules:

View File

@ -49,6 +49,9 @@ class GradleSpecifier:
def isLwjgl(self):
return self.group in ("org.lwjgl.lwjgl", "net.java.jinput", "net.java.jutils")
def isMojangNetty(self):
return self.group == "com.mojang" and self.artifact == "netty"
def __lt__(self, other):
return self.toString() < other.toString()