chore: warning

This commit is contained in:
2025-05-30 16:24:23 +02:00
parent b5c6523b45
commit 26fadacd0b

View File

@@ -13,8 +13,7 @@ import java.util.function.Consumer;
* and it contains their names and actions
*/
public enum Events {
PEACEFUL_ROUND("Peaceful round. enjoy!", game -> {
}),
PEACEFUL_ROUND("Peaceful round. enjoy!"),
FLOOD("Flood", game -> {
game.getStrings().print("eventFlood");
game.setBuildings(new ArrayList<>(
@@ -47,6 +46,11 @@ public enum Events {
this.name = name;
this.action = action;
}
Events(String name) {
this.name = name;
action = null;
}
/**
* Returns human-readable name