mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 04:09:43 +00:00
Machines getting there.
This commit is contained in:
1 parent
fcf5fdf417
commit
a1921a3944
30 files changed
+469
-528
No files matched your search
@@ -232,7 +232,7 @@ public abstract class AbstractPoweredTaskEntity extends AbstractMachineEntity im
|
||||
|
||||
@Override
|
||||
public void readCustomNBT(NBTTagCompound nbtRoot) {
|
||||
super.readFromNBT(nbtRoot);
|
||||
super.readCustomNBT(nbtRoot);
|
||||
currentTask = PoweredTask.readFromNBT(nbtRoot.getCompoundTag("currentTask"));
|
||||
String uid = nbtRoot.getString("lastCompletedRecipe");
|
||||
lastCompletedRecipe = MachineRecipeRegistry.instance.getRecipeForUid(uid);
|
||||
@@ -240,7 +240,7 @@ public abstract class AbstractPoweredTaskEntity extends AbstractMachineEntity im
|
||||
|
||||
@Override
|
||||
public void writeCustomNBT(NBTTagCompound nbtRoot) {
|
||||
super.writeToNBT(nbtRoot);
|
||||
super.writeCustomNBT(nbtRoot);
|
||||
if(currentTask != null) {
|
||||
NBTTagCompound currentTaskNBT = new NBTTagCompound();
|
||||
currentTask.writeToNBT(currentTaskNBT);
|
||||
|
||||
Reference in new issue
Block a user