Correct requested tag type for tower blocks list in wizard data loading, fixes #291

This commit is contained in:
Electroblob77
2019-12-17 17:45:27 +00:00
parent 470a7e82bc
commit e8818a4db5
@@ -416,7 +416,7 @@ public class EntityWizard extends EntityCreature implements INpc, IMerchant, ISp
this.spells = (List<Spell>)NBTExtras.NBTToList(nbt.getTagList("spells", NBT.TAG_INT),
(NBTTagInt tag) -> Spell.byMetadata(tag.getInt()));
NBTTagList tagList = nbt.getTagList("towerBlocks", NBT.TAG_LONG);
NBTTagList tagList = nbt.getTagList("towerBlocks", NBT.TAG_COMPOUND);
if(!tagList.isEmpty()){
this.towerBlocks = new HashSet<>(NBTExtras.NBTToList(tagList, NBTUtil::getPosFromTag));
}else{