More fixes

This commit is contained in:
Raoul Van den Berge
2016-10-23 15:03:40 +02:00
parent 1b9b081a95
commit ccfda6c9b1
2 changed files with 5 additions and 7 deletions

View File

@@ -20,8 +20,6 @@ import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
;
public abstract class CraftingStep implements ICraftingStep {
public static final String NBT_CRAFTING_STEP_TYPE = "CraftingStepType";
private static final String NBT_SATISFIED = "Satisfied_%d";

View File

@@ -333,13 +333,13 @@ public class CraftingTask implements ICraftingTask {
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
writeDefaultsToNBT(tag);
NBTTagList processablesList = new NBTTagList();
NBTTagList stepsList = new NBTTagList();
for (ICraftingStep processable : steps) {
processablesList.appendTag(processable.writeToNBT(new NBTTagCompound()));
for (ICraftingStep step : steps) {
stepsList.appendTag(step.writeToNBT(new NBTTagCompound()));
}
tag.setTag(NBT_STEPS, processablesList);
tag.setTag(NBT_STEPS, stepsList);
NBTTagList toInsertItemsList = new NBTTagList();