public void useSelectedItem() {
		if (!player.isFrozen() && selectedIndex != -1 && player.getInventoryItems().get(selectedIndex) != null) {
			Item toUse = player.getInventoryItems().get(selectedIndex);
			if (toUse instanceof Powerup) {
				Powerup powerup = (Powerup)toUse;
				if (powerup.getPower() == Powerup.Power.HEALTH_POTION || powerup.getPower() == Powerup.Power.STRONG_HEALTH_POTION) {
					client.useItem(selectedIndex);
				} else {
					powerup.use(player);
					client.useItem(selectedIndex);
				}
			}
		}
	}