Remove final from instanceof check in Config (#26)

Eclipse reaaaally hates this `final` here and it looks weird to the
rest of us. Since the MDK should work for all IDEs. we should remove
that `final`.
This commit is contained in:
TelepathicGrunt 2023-12-09 14:29:39 -05:00 committed by GitHub
parent 6bc4a12ecf
commit f5f4feccd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ public class Config
private static boolean validateItemName(final Object obj)
{
return obj instanceof final String itemName && BuiltInRegistries.ITEM.containsKey(new ResourceLocation(itemName));
return obj instanceof String itemName && BuiltInRegistries.ITEM.containsKey(new ResourceLocation(itemName));
}
@SubscribeEvent