12
1
Dieser Commit ist enthalten in:
Lixfel 2019-09-29 19:37:41 +02:00
Ursprung 2921f53194
Commit 43276797fe

Datei anzeigen

@ -75,7 +75,7 @@ public class WinconditionWaterTechKO {
for(int y = minY; y <= maxY; y++) {
for (int z = minZ; z <= maxZ; z++) {
Location location = new Location(Bukkit.getWorlds().get(0), x, y, z);
if (location.getBlock().getType() == Material.STATIONARY_WATER)
if (location.getBlock().getType() == Material.STATIONARY_WATER || location.getBlock().getType() == Material.WATER)
teamWater.add(location);
}
}
@ -83,7 +83,7 @@ public class WinconditionWaterTechKO {
}
private static void checkWaterspots(Set<Location> teamWater){
teamWater.removeIf(location -> location.getBlock().getType() != Material.STATIONARY_WATER);
teamWater.removeIf(location -> location.getBlock().getType() != Material.STATIONARY_WATER && location.getBlock().getType() != Material.WATER);
}
private static void checkEmpty(FightTeam team, Set<Location> teamWater){