Crafting task cancelling.
This commit is contained in:
@@ -44,6 +44,16 @@ public class CraftingInserter {
|
||||
}
|
||||
}
|
||||
|
||||
public void insertAll() {
|
||||
while (!items.isEmpty()) {
|
||||
CraftingInserterItem item = items.pop();
|
||||
|
||||
network.insertItem(item.getStack(), item.getStack().getCount(), false);
|
||||
}
|
||||
|
||||
network.getCraftingManager().onTaskChanged();
|
||||
}
|
||||
|
||||
public Collection<CraftingInserterItem> getItems() {
|
||||
return items;
|
||||
}
|
||||
|
||||
@@ -192,8 +192,8 @@ public class CraftingTask implements ICraftingTask {
|
||||
}
|
||||
|
||||
@Override
|
||||
// TODO
|
||||
public void onCancelled() {
|
||||
inserter.insertAll();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -3,10 +3,10 @@ package com.raoulvdberge.refinedstorage.block;
|
||||
import net.minecraft.util.IStringSerializable;
|
||||
|
||||
public enum FluidStorageType implements IStringSerializable {
|
||||
TYPE_64K(0, 64000, "64k"),
|
||||
TYPE_128K(1, 128000, "128k"),
|
||||
TYPE_256K(2, 256000, "256k"),
|
||||
TYPE_512K(3, 512000, "512k"),
|
||||
TYPE_64K(0, 64_000, "64k"),
|
||||
TYPE_128K(1, 128_000, "128k"),
|
||||
TYPE_256K(2, 256_000, "256k"),
|
||||
TYPE_512K(3, 512_000, "512k"),
|
||||
TYPE_CREATIVE(4, -1, "creative");
|
||||
|
||||
private int id;
|
||||
|
||||
Reference in New Issue
Block a user