Fixed battery drop and pick block
This commit is contained in:
parent
941398fa29
commit
67fbfd239b
1 changed files with 1 additions and 1 deletions
|
@ -147,6 +147,6 @@ public class BlockBattery extends BlockIOBase implements ITileEntityProvider
|
|||
}
|
||||
|
||||
TileBattery battery = (TileBattery) world.getBlockTileEntity(x, y, z);
|
||||
return CompatibilityModule.getItemWithCharge(new ItemStack(id, 1, getDamageValue(world, x, y, z)), battery.getEnergy(null));
|
||||
return CompatibilityModule.getItemWithCharge(ItemBlockBattery.setTier(new ItemStack(id, 1, 0), (byte) world.getBlockMetadata(x, y, z)), battery.energy.getEnergy());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue