aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/mappings.py
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-03-14 16:33:03 -0500
committerGitHub <noreply@github.com>2023-03-14 16:33:03 -0500
commit12a9c8ce65b58f0c600fd7b9fc5d454ce228b420 (patch)
tree9bada4164ea12fa533d413c0c7090f4779b519f1 /codegen/lib/mappings.py
parentb792e21d1c2b7dba04d88dba479ed451104a6514 (diff)
downloadazalea-drasl-12a9c8ce65b58f0c600fd7b9fc5d454ce228b420.tar.xz
1.19.4 (#57)
* 23w03a * 23w04a * 23w05a * 23w06a * fix * 23w07a mojang broke their json data generator so some stuff is missing * didn't mean to commit that file here * 1.19.4-pre2 * fix * 1.19.4-pre3 * fix * how did these packets get here * 1.19.4-pre4 * 1.19.4-rc1 * 1.19.4-rc2 * 1.19.4-rc3 * merge main * remove debugging code * 1.19.4
Diffstat (limited to 'codegen/lib/mappings.py')
-rwxr-xr-xcodegen/lib/mappings.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/codegen/lib/mappings.py b/codegen/lib/mappings.py
index 7cbb863a..22624fac 100755
--- a/codegen/lib/mappings.py
+++ b/codegen/lib/mappings.py
@@ -68,6 +68,13 @@ class Mappings:
return self.fields.get(obfuscated_class_name, {}).get(obfuscated_field_name)
def get_class(self, obfuscated_class_name):
+ if '<' in obfuscated_class_name:
+ first_part, args = obfuscated_class_name.split('<')
+ args = args.rstrip('>').strip(';').split(';')
+ print(args)
+ assert len(args) == 1
+ arg = self.get_class(args[0][1:])
+ return f'{first_part}<{arg}>'
return self.classes[obfuscated_class_name]
def get_method(self, obfuscated_class_name, obfuscated_method_name, obfuscated_signature):