Skip to content

Commit 5da2b6e

Browse files
committed
Fix async syntax that prevented web seed generation
1 parent 9237263 commit 5da2b6e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

RandomizerCore/Sidescroll/RandomWalkCoordinatePalaceGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected override async Task<Dictionary<Coord, RoomExitType>> GetPalaceShape(Ra
158158

159159
//Debug.WriteLine(GetLayoutDebug(walkGraph, false));
160160

161-
return await Task.FromResult(walkGraph);
161+
return walkGraph;
162162
}
163163

164164
protected override ItemRoomSelectionStrategy GetItemRoomSelectionStrategy()

RandomizerCore/Sidescroll/ShapeFirstCoordinatePalaceGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal override async Task<Palace> GeneratePalace(RandomizerProperties props,
2222
// var palaceGroup = Util.AsPalaceGrouping(palaceNumber);
2323

2424
Dictionary<Coord, RoomExitType> shape;
25-
shape = GetPalaceShape(props, palace, roomPool, r, roomCount).Result;
25+
shape = await GetPalaceShape(props, palace, roomPool, r, roomCount);
2626
if(shape.Count == 0)
2727
{
2828
palace.IsValid = false;

RandomizerCore/Sidescroll/TowerCoordinatePalaceGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ protected async override Task<Dictionary<Coord, RoomExitType>> GetPalaceShape(Ra
328328
}
329329

330330
//Debug.WriteLine(GetLayoutDebug(shape));
331-
return await Task.FromResult(shape);
331+
return shape;
332332

333333
}
334334

0 commit comments

Comments
 (0)