From 15525e2fbac113f4aa30f224269f0b4e31c45f17 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 12 Nov 2020 13:01:20 -0800 Subject: [PATCH] Fix entities topping 20w45a added a new anonymous Spliterator implementation, which was causing issues since it doesn't refer to a normal constant. --- burger/toppings/entities.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/burger/toppings/entities.py b/burger/toppings/entities.py index 72bfd5cc..8a1a8d32 100644 --- a/burger/toppings/entities.py +++ b/burger/toppings/entities.py @@ -85,6 +85,10 @@ def _entities_1point13(aggregate, classloader, verbose): builderclass = None funcclass = None # 19w08a+ - a functional interface for creating new entities for entry in inner_classes: + if entry.outer_class_info_index == 0: + # Ignore anonymous classes + continue + outer = cf.constants.get(entry.outer_class_info_index) if outer.name == listclass: inner = cf.constants.get(entry.inner_class_info_index)