Merge branch 'master' into 1.16
# Conflicts: # src/main/java/carpet/script/value/EntityValue.java
This commit is contained in:
commit
224d30e951
3 files changed
+82
-10
No files matched your search
@@ -47,6 +47,16 @@ public class ValueConversions
|
||||
return new StringValue(id.getPath());
|
||||
return new StringValue(id.toString());
|
||||
}
|
||||
|
||||
public static String simplify(Identifier id)
|
||||
{
|
||||
if (id == null) // should be Value.NULL
|
||||
return "";
|
||||
if (id.getNamespace().equals("minecraft"))
|
||||
return id.getPath();
|
||||
return id.toString();
|
||||
}
|
||||
|
||||
public static Value ofGlobalPos(GlobalPos pos)
|
||||
{
|
||||
return ListValue.of(
|
||||
|
||||
Reference in new issue
Block a user