From 5ea1e3c3585c181b75c29436a938780ffff5a957 Mon Sep 17 00:00:00 2001 From: Speiger Date: Tue, 22 Jun 2021 19:49:32 +0200 Subject: [PATCH] Got the If switched up. --- .../collections/templates/maps/impl/misc/EnumMap.template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template b/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template index 3b05849..5090dbb 100644 --- a/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template +++ b/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template @@ -213,11 +213,12 @@ public class ENUM_MAP KEY_ENUM_VALUE_GENERIC_TYPE extends ABSTRACT_MAP KEY_VALUE onNodeRemoved(index); } protected boolean isSet(int index) { return (present[index >> 6] & (1L << index)) != 0; } - private static > K[] getKeyUniverse(Class keyType) { + + private static > K[] getKeyUniverse(Class keyType) { #if UNSAVE_ENUM - return keyType.getEnumConstants(); + return SharedSecrets.getJavaLangAccess().getEnumConstantsShared(keyType); #else - return SharedSecrets.getJavaLangAccess().getEnumConstantsShared(keyType); + return keyType.getEnumConstants(); #endif }