Skip to content

Commit

Permalink
Fix crafting station not autocrafting after load
Browse files Browse the repository at this point in the history
  • Loading branch information
copygirl committed Feb 7, 2014
1 parent df2191d commit 6b2819e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ public void readFromNBT(NBTTagCompound compound) {
if (compound.hasKey("Output"))
NbtUtils.readItems(output, compound.getTagList("Output"));
stationInventory.progress = compound.getInteger("progress");
stationInventory.outputIsReal = compound.hasKey("Output");
// Update the inventory, causes ghost output to be initialized.
stationInventory.checkRecipe();
stationInventory.onInventoryChanged();
}
@Override
public void writeToNBT(NBTTagCompound compound) {
Expand Down

0 comments on commit 6b2819e

Please sign in to comment.