Move static ITEM_TIER_ORDERING_JSON resourcelocation declaration from anonymous class into outer class to work around eclipse compiler error. (#8018)

This commit is contained in:
Commoble authored and GitHub committed 2021-08-19 14:31:05 -07:00
1 parent 9165d4c3a1
commit d612dc3a6d
1 file changed
+1 -2
@@ -68,6 +68,7 @@ import java.util.stream.Collectors;
public class TierSortingRegistry
{
private static final Logger LOGGER = LogManager.getLogger();
private static final ResourceLocation ITEM_TIER_ORDERING_JSON = new ResourceLocation("forge", "item_tier_ordering.json");
/**
* Registers a tier into the tier sorting registry.
@@ -258,8 +259,6 @@ public class TierSortingRegistry
{
return new SimplePreparableReloadListener<JsonObject>()
{
static final ResourceLocation ITEM_TIER_ORDERING_JSON = new ResourceLocation("forge", "item_tier_ordering.json");
final Gson gson = (new GsonBuilder()).create();
@Nonnull