From 12a9c8ce65b58f0c600fd7b9fc5d454ce228b420 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 14 Mar 2023 16:33:03 -0500 Subject: 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 --- codegen/lib/mappings.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'codegen/lib/mappings.py') 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): -- cgit v1.2.3