fix lens stacking and #2353

This commit is contained in:
asiekierka 2015-01-03 13:37:34 +01:00
parent e1bb073228
commit 2b0885ccda
2 changed files with 4 additions and 3 deletions

View file

@ -113,10 +113,10 @@ public class BlockTank extends BlockBuildCraft {
if (qty != 0 && !BuildCraftCore.debugWorldgen && !entityplayer.capabilities.isCreativeMode) {
if (current.stackSize > 1) {
if (!entityplayer.inventory.addItemStackToInventory(FluidContainerRegistry.drainFluidContainer(current))) {
return false;
} else {
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, InvUtils.consumeItem(current));
entityplayer.dropPlayerItemWithRandomChoice(FluidContainerRegistry.drainFluidContainer(current), false);
}
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, InvUtils.consumeItem(current));
} else {
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, FluidContainerRegistry.drainFluidContainer(current));
}

View file

@ -37,6 +37,7 @@ public class ItemLens extends ItemBuildCraft implements IPipePluggableItem {
public ItemLens() {
super();
setHasSubtypes(true);
}
@Override