mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 22:34:33 +00:00
Carry Postea stamps of absent transformers across post box saves
This commit is contained in:
2 files changed
+20
-8
No files matched your search
@@ -13,6 +13,7 @@ import forestry.core.utils.PosteaCompat;
|
||||
public abstract class MailSavedData extends WorldSavedData {
|
||||
|
||||
private RuntimeException loadFailure;
|
||||
private NBTTagCompound savedStamps;
|
||||
|
||||
protected MailSavedData(String mapName) {
|
||||
super(mapName);
|
||||
@@ -26,13 +27,14 @@ public abstract class MailSavedData extends WorldSavedData {
|
||||
loadFailure = e;
|
||||
throw e;
|
||||
}
|
||||
savedStamps = PosteaCompat.savedStamps(root);
|
||||
readData(root);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void writeToNBT(NBTTagCompound root) {
|
||||
writeData(root);
|
||||
PosteaCompat.stamp(root);
|
||||
PosteaCompat.stamp(root, savedStamps);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user