Skip to content

Commit

Permalink
Try fix 1.20 build
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Jan 25, 2025
1 parent d358046 commit 31b877b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
minecraft: [ "1.19.2", "1.20.1", "1.20.4", "1.21" ]
minecraft: [ "1.19.2", "1.20.1", "1.20.4", "1.21.1" ]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void executeCommandServer(CommentEntry comment, ServerWorldData wo
case "domainisnot" -> predicateIsPositive = false;
default -> { return; }
};
ImageUploader uploader = ImageUploader.parseUploaderList(Main.SERVER_CONFIG.parseUploaderConfig()).getFirst();
ImageUploader uploader = ImageUploader.parseUploaderList(Main.SERVER_CONFIG.parseUploaderConfig()).get(0);
for (CommentEntry commentEntry : worldData.comments.timeIndex.values()) {
if (commentEntry.image.url.isEmpty()) continue;
URI imageUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void update(CommentEntry existingEntry) throws IOException {
public void updateRegion(List<CommentEntry> regionEntries) throws IOException {
synchronized (this) {
if (regionEntries.isEmpty()) return;
CommentEntry pivot = regionEntries.getFirst();
CommentEntry pivot = regionEntries.get(0);
try {
Files.createDirectory(getLevelPath(pivot.level));
} catch (FileAlreadyExistsException ignored) {
Expand Down

0 comments on commit 31b877b

Please sign in to comment.