Simplify and standarize some conversions with ValueConversions

This commit is contained in:
altrisi committed 2022-10-02 18:49:49 +02:00
1 parent be1cb6888a
commit 4f9bd3ab78
2 files changed
+6 -10

No files matched your search

@@ -178,9 +178,7 @@ public class ValueConversions
{
if (id == null) // should be Value.NULL
return Value.NULL;
if (id.getNamespace().equals("minecraft"))
return new StringValue(id.getPath());
return new StringValue(id.toString());
return new StringValue(simplify(id));
}
public static String simplify(ResourceLocation id)