}
if(MainProxy.isClient()) {
NBTTagList list = new NBTTagList();
String info1 = "Please reopen the window";
String info2 = "to see the information.";
list.appendTag(new NBTTagString(info1));
list.appendTag(new NBTTagString(info2));
if(!itemStack.hasTagCompound()) {
itemStack.setTagCompound(new NBTTagCompound());
}
NBTTagCompound stacktag = itemStack.getTagCompound();
stacktag.setTag("informationList", list);
stacktag.setDouble("Random-Stack-Prevent", new Random().nextDouble());
return;
}
if(!itemStack.hasTagCompound()) {
itemStack.setTagCompound(new NBTTagCompound());
}
NBTTagCompound stacktag = itemStack.getTagCompound();
stacktag.setTag("moduleInformation", nbt);
if(module instanceof IClientInformationProvider) {
List<String> information = ((IClientInformationProvider)module).getClientInformation();
if(information.size() > 0) {
NBTTagList list = new NBTTagList();
for(String info:information) {
list.appendTag(new NBTTagString(info));
}
stacktag.setTag("informationList", list);
}
}
stacktag.setDouble("Random-Stack-Prevent", new Random().nextDouble());