hotfixes
Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
c0d19fe75e
Commit
b9a26c768f
@ -84,7 +84,10 @@ public class FightTeam {
|
||||
}
|
||||
|
||||
public boolean isPlayerLeader(Player player) {
|
||||
return leader.getPlayer().equals(player);
|
||||
if(leader != null)
|
||||
return leader.getPlayer().equals(player);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public void broadcast(String message) {
|
||||
|
@ -92,6 +92,10 @@ public class WaterRemover {
|
||||
if (anchor.getType() == Material.STATIONARY_WATER) {
|
||||
collected.add(anchor);
|
||||
}
|
||||
if(visitedBlocks.size() > 50) {
|
||||
collected.clear();
|
||||
return;
|
||||
}
|
||||
this.collectBlocks(anchor.getRelative(BlockFace.UP), collected, visitedBlocks);
|
||||
this.collectBlocks(anchor.getRelative(BlockFace.NORTH), collected, visitedBlocks);
|
||||
this.collectBlocks(anchor.getRelative(BlockFace.EAST), collected, visitedBlocks);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren