@SuppressWarnings("deprecation")
	public void restoreInv(Player rPlayer) {
		rPlayer.getInventory().clear();
		rPlayer.getInventory().setBoots(feet);
		rPlayer.getInventory().setHelmet(helmet);
		rPlayer.getInventory().setChestplate(chest);
		rPlayer.getInventory().setLeggings(legs);
		for (ItemStack item : contents) {
			if (item != null && item.getTypeId() != 0) {
				rPlayer.getInventory().addItem(item);
			}
		}
		if (rPlayer.hasPotionEffect(PotionEffectType.SPEED)) {
			rPlayer.removePotionEffect(PotionEffectType.SPEED);
		}
	}