mirror of
https://github.com/plexusorg/ItemizerX.git
synced 2025-07-01 15:46:42 +00:00
Fixed a NPE where an attribute name would start with minecraft:
This commit is contained in:
@ -34,7 +34,7 @@ public enum Attributes
|
||||
{
|
||||
for (Attributes attr : values())
|
||||
{
|
||||
if (attr.name().equalsIgnoreCase(name) || attr.mcName.equalsIgnoreCase(name))
|
||||
if (attr.name().equalsIgnoreCase(name) || attr.mcName.equalsIgnoreCase(name.replace("minecraft:", "")))
|
||||
{
|
||||
return attr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user