fix lens stacking and #2353
This commit is contained in:
parent
e1bb073228
commit
2b0885ccda
2 changed files with 4 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ public class ItemLens extends ItemBuildCraft implements IPipePluggableItem {
|
|||
|
||||
public ItemLens() {
|
||||
super();
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue