mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
/rtp API tweaks, add timeout failsafe, add teleporting_random_generation locale
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user