Skip to content

Commit

Permalink
impl/jnbt folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 9, 2017
1 parent 4227e57 commit cde4fd7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -106,12 +106,12 @@ else if (base instanceof NBTTagString) {
else if (base instanceof NBTTagList) {
NBTTagList list = (NBTTagList) base;
if (list.size() > 0) {
NBTBase nbase = list.h(0);
NBTBase nbase = list.i(0);
NBTTagCompound comp = new NBTTagCompound();
comp.set("test", nbase);
ListTagBuilder ltb = new ListTagBuilder(fromNMSTag(comp).getValue().get("test").getClass());
for (int i = 0 ; i < list.size(); i++) {
NBTBase nbase2 = list.h(i);
NBTBase nbase2 = list.i(i);
NBTTagCompound comp2 = new NBTTagCompound();
comp2.set("test", nbase2);
ltb.add(fromNMSTag(comp2).getValue().get("test"));
Expand Down

0 comments on commit cde4fd7

Please sign in to comment.