mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Fixes #929
This commit is contained in:
parent
6a16bbfc4b
commit
19402f3650
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ public class ItemBattery extends ItemEnergy{
|
|||
EntityPlayer player = (EntityPlayer)entity;
|
||||
for(int i = 0; i < player.inventory.getSizeInventory(); i++){
|
||||
ItemStack slot = player.inventory.getStackInSlot(i);
|
||||
if(StackUtil.isValid(slot)){
|
||||
if(StackUtil.isValid(slot) && slot.getCount() == 1){
|
||||
int extractable = this.extractEnergy(stack, Integer.MAX_VALUE, true);
|
||||
int received = 0;
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ public class TileEntityPlayerInterface extends TileEntityBase implements IEnergy
|
|||
for(int i = 0; i < player.inventory.getSizeInventory(); i++){
|
||||
if(this.storage.getEnergyStored() > 0){
|
||||
ItemStack slot = player.inventory.getStackInSlot(i);
|
||||
if(StackUtil.isValid(slot)){
|
||||
if(StackUtil.isValid(slot) && slot.getCount() == 1){
|
||||
|
||||
int received = 0;
|
||||
if(slot.hasCapability(CapabilityEnergy.ENERGY, null)){
|
||||
|
|
Loading…
Reference in a new issue