Skip to content

Commit

Permalink
build: Change to java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
utfunderscore committed May 30, 2024
1 parent 352ed5d commit 73514fd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ dependencies {
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(17))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@Getter
public class ArenaMeta {


private final String name;
private final String description;
private final MaterialData materialData;
Expand Down
2 changes: 1 addition & 1 deletion Development/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ publishing {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(17))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void onItemPickup(EntityPickupItemEvent e) {
pickupPlayers = new ArrayList<>(nearbyPlayers);
}

Player pickedPlayer = pickupPlayers.getFirst();
Player pickedPlayer = pickupPlayers.get(0);
pickedPlayer.getInventory().addItem(itemStack);
history.add(pickedPlayer.getUniqueId());
pickupHistory.put(itemStack.getType(), history);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void onQuit(PlayerQuitEvent e) {
System.out.println("added with debug");

if(game.getAliveTeams().size() == 1) {
game.endGame(game.getAliveTeams().getFirst(), GameEndReason.ENEMIES_ELIMINATED);
game.endGame(game.getAliveTeams().get(0), GameEndReason.ENEMIES_ELIMINATED);
} else if(game.getAliveTeams().isEmpty()) {
game.endGame(null, GameEndReason.DRAW);
}
Expand Down
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
jdk:
- openjdk21
- openjdk17

0 comments on commit 73514fd

Please sign in to comment.