Merge branch 'master' into 1.15

This commit is contained in:
gnembon committed 2020-01-12 22:14:18 -04:00
commit f2427c6c07
4 files changed
+63 -4

No files matched your search

@@ -77,6 +77,11 @@ public class MapValue extends AbstractListValue implements ContainerValueInterfa
map = other;
}
public static MapValue wrap(Map<Value,Value> other)
{
return new MapValue(other);
}
@Override
public Value add(Value o)
{
@@ -82,6 +82,8 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
public static String nameFromRegistryId(Identifier id)
{
if (id == null) // should be Value.NULL
return "";
if (id.getNamespace().equals("minecraft"))
return id.getPath();
return id.toString();