fixed crash when removing prematurely removing blueprint from library, close #1812
This commit is contained in:
parent
c44842ad10
commit
4b475d9fef
1 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue