SteamWar/FightSystem
Archiviert
13
1

Arrows Stopping in Techhider Blocks #208

Manuell gemergt
Lixfel hat 17 Commits von arrow-in-techhider nach master 2021-01-02 09:20:42 +01:00 zusammengeführt
Nur Änderungen aus Commit 9984fc0179 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -101,7 +101,6 @@ public class ArrowStopper implements StateDependent {
} }
private boolean checkBlocks(Block start, Block end) { private boolean checkBlocks(Block start, Block end) {
Bukkit.getOnlinePlayers().forEach(player -> player.sendBlockChange(start.getLocation(), Material.LIME_STAINED_GLASS.createBlockData()));
Block cursor = start; Block cursor = start;
while (cursor.getY() != end.getY()) { while (cursor.getY() != end.getY()) {
@ -132,7 +131,6 @@ public class ArrowStopper implements StateDependent {
} }
private boolean checkBlock(Block block) { private boolean checkBlock(Block block) {
Bukkit.getOnlinePlayers().forEach(player -> player.sendBlockChange(block.getLocation(), Material.RED_STAINED_GLASS.createBlockData()));
return Config.HiddenBlocks.contains(blockToId(block)); return Config.HiddenBlocks.contains(blockToId(block));
} }
} }