Encourage users to report the circular NBT reference error

This commit is contained in:
Electroblob77
2020-01-27 14:33:45 +00:00
parent de2087c0e8
commit 7a247df3e1
@@ -218,7 +218,7 @@ public final class NBTExtras {
public static void storeTagSafely(NBTTagCompound compound, String key, NBTBase tag){
if(compound == tag || deepContains(tag, compound)){
Wizardry.logger.error("Cannot store tag of type {} under key '{}' as it would result in a circular reference!",
Wizardry.logger.error("Cannot store tag of type {} under key '{}' as it would result in a circular reference! Please report this (including your full log) to wizardry's issue tracker.",
NBTBase.getTypeName(tag.getId()), key);
}else{
compound.setTag(key, tag);