1.15 adjustments for scarpet 1.5

This commit is contained in:
gnembon committed 2019-10-08 02:18:09 -03:00
1 parent dc9532cf05
commit 03703fd7fe
2 files changed
+7 -7

No files matched your search

@@ -294,7 +294,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
Collection<Tag> targets;
try
{
targets = nbtPath.putIfAbsent(currentTag, ListTag::new);
targets = nbtPath.getOrInit(currentTag, ListTag::new);
}
catch (CommandSyntaxException e)
{
@@ -332,7 +332,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
Tag originalTag = getTag().copy();
try
{
for (Tag target : nbtPath.putIfAbsent(originalTag, CompoundTag::new))
for (Tag target : nbtPath.getOrInit(originalTag, CompoundTag::new))
{
if (!(target instanceof CompoundTag))
{