Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean isPresent = false;
- for(int i = 0; i < list.tagCount(); i++){
- ImbumentEnum iEnum = ImbumentEnum.valueOf(((NBTTagCompound) list.getCompoundTagAt(i)).getString("CrystalAlchemyImbumentID"));
- if(iEnum == imbument.getType()){
- isPresent = true;
- }
- }
- if(isPresent){
- NBTTagCompound compound = new NBTTagCompound();
- compound.setString("CrystalAlchemyImbumentID", imbument.getType().name());
- list.appendTag(compound);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement