/rtp API tweaks, add timeout failsafe, add teleporting_random_generation locale

This commit is contained in:
William committed 2022-11-26 00:24:13 +00:00
1 parent a0042ac4c8
commit 6efefb175f
13 files changed
+42 -9

No files matched your search

@@ -441,10 +441,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
final int y = snapshot.getHighestBlockYAt(x, z);
final Material blockType = snapshot.getBlockType(chunkX, y, chunkZ);
if (!isBlockUnsafe(blockType.getKey().toString())) {
Bukkit.broadcastMessage("✔ Safe block: " + blockType.getKey());
return new Location((location.x + dX) + 0.5d, y + 1.25d, (location.z + dZ) + 0.5d, location.world);
} else {
Bukkit.broadcastMessage("❌ Unsafe block: " + blockType.getKey());
}
}
}