Save flare chakram state in NBT, closes upstream issue 1620

This commit is contained in:
Vincent Lee committed 2016-06-17 19:43:45 -05:00
1 parent 9fef518968
commit 0001f9c8f1
1 file changed
+2
@@ -204,6 +204,7 @@ public class EntityThornChakram extends EntityThrowable {
if(stack != null) {
compound.setTag("fly_stack", stack.writeToNBT(new NBTTagCompound()));
}
compound.setBoolean("flare", isFire());
}
@Override
@@ -212,6 +213,7 @@ public class EntityThornChakram extends EntityThrowable {
if(compound.hasKey("fly_stack")) {
stack = ItemStack.loadItemStackFromNBT(compound.getCompoundTag("fly_stack"));
}
setFire(compound.getBoolean("flare"));
}
}