fix edited class EditorState

fix edited battleship.properties with the right Key to fix an exception
fix edited battleship_de.properties with the right Key to fix an exception
This commit is contained in:
Lukas Bauer
2024-10-05 13:09:05 +02:00
parent 113da79df6
commit 8650fa5b58
3 changed files with 4 additions and 2 deletions

View File

@@ -238,7 +238,7 @@ public void loadMap(File file) throws IOException {
if (!dto.fits(logic.getDetails()))
throw new IOException(lookup("map.doesnt.fit"));
if(!validMap(dto)){
throw new IOException(lookup("map is invalid"));
throw new IOException(lookup("map.is.invalid"));
}
ownMap().clear();
dto.getShips().forEach(ownMap()::add);

View File

@@ -37,4 +37,5 @@ label.connecting=Connecting...
dialog.error=Error
dialog.question=Question
port.must.be.integer=Port must be an integer number
map.doesnt.fit=The map doesn't fit to this game
map.doesnt.fit=The map doesn't fit to this game
map.is.invalid=The Map is invalid

View File

@@ -38,3 +38,4 @@ dialog.error=Fehler
dialog.question=Frage
port.must.be.integer=Der Port muss eine ganze Zahl sein
map.doesnt.fit=Diese Karte passt nicht zu diesem Spiel
map.is.invalid=Diese Karte ist invalide