fixed crash when removing prematurely removing blueprint from library, close #1812

This commit is contained in:
SpaceToad 2014-05-15 22:22:49 +02:00
parent c44842ad10
commit 4b475d9fef

View file

@ -123,7 +123,21 @@ public class TileBlueprintLibrary extends TileBuildCraft implements IInventory {
@Override
public ItemStack decrStackSize(int i, int j) {
return inv.decrStackSize(i, j);
ItemStack result = inv.decrStackSize(i, j);
if (i == 0) {
if (getStackInSlot(0) == null) {
progressIn = 0;
}
}
if (i == 2) {
if (getStackInSlot(2) == null) {
progressOut = 0;
}
}
return result;
}
@Override