private int stabilityOf(Block block) {
		if (!doesGravityEffect(block.getType())) {
			if (!STABLE_MATERIALS.contains(block.getType())) {
				return (STABILITY_MIN - 1);
			} else {
				return STABILITY_MAX + 1 + block.getType().getMaxDurability();
			}
		}

		for (int s = STABILITY_DATA.length - 1; s >= 0; s--) {
			if (block.getData() == STABILITY_DATA[s]) {
				return s;
			}
		}

		return (STABILITY_MIN - 1);
	}