mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Save flare chakram state in NBT, closes upstream issue 1620
This commit is contained in:
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"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user