Skip to content

Instantly share code, notes, and snippets.

@Keridos
Last active September 9, 2015 12:09
Show Gist options
  • Save Keridos/7c126eab0a70a8551586 to your computer and use it in GitHub Desktop.
Save Keridos/7c126eab0a70a8551586 to your computer and use it in GitHub Desktop.
@Override
public void readFromNBT(NBTTagCompound nbtTagCompound) {
super.readFromNBT(nbtTagCompound);
if (nbtTagCompound.hasKey(Names.NBT.SOURCES)) {
NBTTagList list = nbtTagCompound.getTagList(Names.NBT.ITEMS, Constants.NBT.TAG_INT_ARRAY);
for (int i = 0 ; i < list.tagCount(); i++) {
sources.add(list.func_150306_c(i));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment