mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 11:41:28 -04:00
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:
parent
787c94001e
commit
02eb0569d5
@ -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:
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user