TechKO Bug
Dieser Commit ist enthalten in:
Ursprung
2921f53194
Commit
43276797fe
@ -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){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren