@SuppressWarnings("deprecation")
	@Override
	public void run() {
		for (int i = 0; i <= 1; i++) {
			if (!data.isEmpty()) {
				int index = r.nextInt(data.size());
				RegenData rd;
				synchronized (lock) {
					rd = data.remove(index);
				}

				Block b = rd.getW().getBlockAt(rd.getX(), rd.getY(), rd.getZ());
				int effectID = rd.getId() == 0 ? b.getTypeId() : rd.getId();
				b.setTypeIdAndData(rd.getId(), rd.getData(), true);
				rd.getW().playEffect(new Location(rd.getW(), rd.getX(), rd.getY(), rd.getZ()), Effect.STEP_SOUND, effectID);
				rd = null;
			}
		}
	}