Merge branch 'scarpet_cleanup' of https://github.com/gnembon/fabric-carpet into scarpet_cleanup

This commit is contained in:
gnembon committed 2019-10-04 10:37:35 -03:00
commit 06b25e9183
1 file changed
+3 -2
@@ -218,14 +218,15 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
Tag tagToInsert = value instanceof NBTSerializableValue ?
((NBTSerializableValue) value).getTag() :
new NBTSerializableValue(value.getString()).getTag();
CarpetSettings.LOG.error("Inserting tag of class: "+tagToInsert.getClass().getSimpleName());
CarpetSettings.LOG.error("Inserting tag "+tagToInsert.asString()+" of class: "+tagToInsert.getClass().getSimpleName());
Tag tag = getTag().copy();
try
{
Collection<Tag> collection_1 = path.get(tag); //, CompoundTag::new);
Collection<Tag> collection_1 = path.putIfAbsent(tag, CompoundTag::new);
for(Tag t: collection_1)
{
CarpetSettings.LOG.error("Found target: "+t.asString());
((CompoundTag)t).copyFrom((CompoundTag) tagToInsert);
}
if (collection_1.size() > 0)