Simplify and standarize some conversions with ValueConversions
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user