Skip to content

Commit c8c2304

Browse files
add the correct mapping
Co-authored-by: PlatanoBailando <[email protected]>
1 parent 1595ab0 commit c8c2304

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/io/github/archipelagomw/LocationManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ public Optional<Long> getLocationNameFromID(String locationName){
106106
this.client
107107
.getDataPackage()
108108
.getGame(this.client.getGame())
109-
.locationNameToId
109+
)
110+
.map(game -> game.locationNameToId
110111
.get(locationName)
112+
)
111113
);
112114
}
113115
}

0 commit comments

Comments
 (0)