mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Fikser feilmeldingen for en vegg med en ugyldig retning
This commit is contained in:
parent
2f5ffebfe3
commit
d7186d38c3
@ -86,7 +86,7 @@ public final class BoardLoaderUtil {
|
||||
WallType wallType = WallType.getWallTypeFromID(Integer.parseInt(wallData[0]));
|
||||
Direction direction = Direction.getDirectionFromID(Integer.parseInt(wallData[1]));
|
||||
if (direction == null) {
|
||||
throw new IllegalArgumentException("Invalid direction for tile encountered when loading board file.");
|
||||
throw new IllegalArgumentException("Invalid direction for wall encountered when loading board file.");
|
||||
}
|
||||
wallGrid.setElement(x, y, new Wall(wallType, direction));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user