Skip to content

Commit 0ae1622

Browse files
authored
Upstream
2 parents f937268 + 5067cbd commit 0ae1622

11 files changed

Lines changed: 32 additions & 16 deletions

File tree

.github/workflows/build-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
with:
1818
distribution: temurin
1919
cache: gradle
20-
java-version: 21
20+
java-version: 25
2121
- name: Build on ${{ matrix.os }}
2222
run: ./gradlew build -s
2323
- name: Archive artifacts
24-
uses: actions/upload-artifact@v6
24+
uses: actions/upload-artifact@v7
2525
if: ${{ matrix.os == 'ubuntu-latest' }} # only upload once, use linux builds
2626
with:
2727
name: FastAsyncWorldEdit-SNAPSHOT

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
distribution: temurin
2121
cache: gradle
22-
java-version: 21
22+
java-version: 25
2323
- name: Build
2424
run: ./gradlew build
2525
- name: Determine release status
@@ -71,7 +71,7 @@ jobs:
7171
target-branch: main
7272
target-directory: worldedit-bukkit
7373
- name: Archive Artifacts
74-
uses: actions/upload-artifact@v6
74+
uses: actions/upload-artifact@v7
7575
with:
7676
name: FastAsyncWorldEdit-Bukkit-SNAPSHOT
7777
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
distribution: temurin
2727
cache: gradle
28-
java-version: 21
28+
java-version: 25
2929
- name: Initialize CodeQL
3030
uses: github/codeql-action/init@v4
3131
with:

.github/workflows/upload-release-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
distribution: temurin
1717
cache: gradle
18-
java-version: 21
18+
java-version: 25
1919
- name: Clean Build
2020
run: ./gradlew clean build --no-daemon
2121
- name: Upload Release Assets

build-logic/src/main/kotlin/buildlogic.common-java.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tasks
1515
val disabledLint = listOf(
1616
"processing", "path", "fallthrough", "serial", "overloads", "this-escape",
1717
)
18-
options.release.set(21)
18+
sourceCompatibility = "21"
1919
options.compilerArgs.addAll(listOf("-Xlint:all") + disabledLint.map { "-Xlint:-$it" })
2020
options.isDeprecation = true
2121
options.encoding = "UTF-8"

build-logic/src/main/kotlin/buildlogic.common.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ configurations.all {
1313

1414
plugins.withId("java") {
1515
the<JavaPluginExtension>().toolchain {
16-
languageVersion.set(JavaLanguageVersion.of(21))
16+
languageVersion.set(JavaLanguageVersion.of(25))
1717
}
1818
}
1919

gradle/libs.versions.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ towny = "0.102.0.7"
1717
plotsquared = "7.5.11"
1818

1919
# Third party
20-
bstats = "3.1.0"
20+
bstats = "3.2.1"
2121
sparsebitset = "1.3"
2222
parallelgzip = "1.0.5"
2323
adventure = "4.26.1"
@@ -39,21 +39,22 @@ vault = "1.7.1"
3939
serverlib = "2.3.7"
4040
linbus = "0.2.0"
4141
autoService = "1.1.1"
42+
guice = "7.0.0"
4243

4344
## Internal
4445
text-adapter = "3.0.6"
4546
text = "3.0.4"
4647
piston = "0.5.11"
4748

4849
# Tests
49-
mockito = "5.21.0"
50+
mockito = "5.22.0"
5051
junit = "6.0.3"
5152

5253
# Gradle plugins
5354
pluginyml = "0.6.0"
5455
mod-publish-plugin = "1.1.0"
5556
grgit = "5.3.3"
56-
shadow = "9.3.1"
57+
shadow = "9.3.2"
5758
paperweight = "2.0.0-SNAPSHOT"
5859
codecov = "0.2.0"
5960

@@ -125,6 +126,8 @@ linBus-stream = { group = "org.enginehub.lin-bus", name = "lin-bus-stream" }
125126
linBus-tree = { group = "org.enginehub.lin-bus", name = "lin-bus-tree" }
126127
linBus-format-snbt = { group = "org.enginehub.lin-bus.format", name = "lin-bus-format-snbt" }
127128

129+
guice = { group = "com.google.inject", name = "guice", version.ref = "guice" }
130+
128131
# Internal
129132
## Text
130133
kyoriText-adapter-bukkit = { group = "net.kyori", name = "text-adapter-bukkit", version.ref = "text-adapter" }

worldedit-bukkit/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ dependencies {
130130
compileOnly(libs.towny) { isTransitive = false }
131131
compileOnly(libs.plotsquared.bukkit) { isTransitive = false }
132132
compileOnly(libs.plotsquared.core) { isTransitive = false }
133+
compileOnly(libs.guice)
133134

134135
// Third party
135136
implementation(libs.serverlib)

worldedit-bukkit/src/main/resources/defaults/worldedit-config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ limits:
2424
max-polygonal-points:
2525
default: -1
2626
maximum: 20
27+
max-polyhedron-points:
28+
default: -1
29+
maximum: 20
30+
vertical-height:
31+
default: 256
2732
# radius, superpickaxe, brush radius are ignored, use FAWE config limits
2833
max-radius: -1
2934
max-super-pickaxe-size: 5
@@ -84,6 +89,7 @@ history:
8489

8590
calculation:
8691
timeout: 100
92+
max-timeout: 300
8793

8894
debugging:
8995
trace-unflushed-sessions: false

worldedit-core/src/main/java/com/fastasyncworldedit/core/history/change/ChangePopulator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public interface ChangePopulator<C extends Change> {
1414

1515
static <C extends Change> ChangePopulator<C> empty() {
1616
class Empty implements ChangePopulator<C> {
17-
private static final Empty EMPTY = new Empty();
1817

1918
@Override
2019
public @NotNull C create() {
@@ -36,7 +35,7 @@ public boolean accepts(final Change change) {
3635
return false;
3736
}
3837
}
39-
return Empty.EMPTY;
38+
return new Empty();
4039
}
4140

4241
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)