Merge branch 'master' into 1.16
This commit is contained in:
commit
b6543ff8dd
1 file changed
+12
-1
@@ -436,6 +436,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (modifiedTag) dirty();
|
||||||
return modifiedTag;
|
return modifiedTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -582,13 +583,23 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dirty()
|
||||||
|
{
|
||||||
|
nbtString = null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean delete(Value where)
|
public boolean delete(Value where)
|
||||||
{
|
{
|
||||||
NbtPathArgumentType.NbtPath path = cachePath(where.getString());
|
NbtPathArgumentType.NbtPath path = cachePath(where.getString());
|
||||||
ensureOwnership();
|
ensureOwnership();
|
||||||
int removed = path.remove(getTag());
|
int removed = path.remove(getTag());
|
||||||
return removed > 0;
|
if (removed > 0)
|
||||||
|
{
|
||||||
|
dirty();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class InventoryLocator
|
public static class InventoryLocator
|
||||||
|
|||||||
Reference in new issue
Block a user