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:
		@@ -238,7 +238,7 @@ public void loadMap(File file) throws IOException {
 | 
				
			|||||||
        if (!dto.fits(logic.getDetails()))
 | 
					        if (!dto.fits(logic.getDetails()))
 | 
				
			||||||
            throw new IOException(lookup("map.doesnt.fit"));
 | 
					            throw new IOException(lookup("map.doesnt.fit"));
 | 
				
			||||||
        if(!validMap(dto)){
 | 
					        if(!validMap(dto)){
 | 
				
			||||||
            throw new IOException(lookup("map is invalid"));
 | 
					            throw new IOException(lookup("map.is.invalid"));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        ownMap().clear();
 | 
					        ownMap().clear();
 | 
				
			||||||
        dto.getShips().forEach(ownMap()::add);
 | 
					        dto.getShips().forEach(ownMap()::add);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,4 +37,5 @@ label.connecting=Connecting...
 | 
				
			|||||||
dialog.error=Error
 | 
					dialog.error=Error
 | 
				
			||||||
dialog.question=Question
 | 
					dialog.question=Question
 | 
				
			||||||
port.must.be.integer=Port must be an integer number
 | 
					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
 | 
				
			||||||
@@ -38,3 +38,4 @@ dialog.error=Fehler
 | 
				
			|||||||
dialog.question=Frage
 | 
					dialog.question=Frage
 | 
				
			||||||
port.must.be.integer=Der Port muss eine ganze Zahl sein
 | 
					port.must.be.integer=Der Port muss eine ganze Zahl sein
 | 
				
			||||||
map.doesnt.fit=Diese Karte passt nicht zu diesem Spiel
 | 
					map.doesnt.fit=Diese Karte passt nicht zu diesem Spiel
 | 
				
			||||||
 | 
					map.is.invalid=Diese Karte ist invalide
 | 
				
			||||||
		Reference in New Issue
	
	Block a user