Skip to content

Commit 978e335

Browse files
committed
chore: update to minestom 2025.10.31-1.21.10
1 parent 75ee2cb commit 978e335

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,12 @@ subprojects {
105105
extensions.configure<JavaPluginExtension> {
106106
withSourcesJar()
107107
withJavadocJar()
108-
109108
disableAutoTargetJvm()
110-
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
109+
110+
toolchain {
111+
vendor = JvmVendorSpec.AZUL
112+
languageVersion = JavaLanguageVersion.of(25)
113+
}
111114
}
112115

113116
tasks.withType<Checkstyle> {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ netty = "4.1.117.Final"
1515
# platform api versions
1616
sponge = "10.0.0"
1717
paper = "1.21.10-R0.1-SNAPSHOT"
18-
minestom = "2025.09.13-1.21.8"
18+
minestom = "2025.10.31-1.21.10"
1919

2020
# fabric
2121
minecraft = "1.21.9"

minestom/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ dependencies {
3030
implementation(libs.geantyref)
3131
}
3232

33-
tasks.withType<JavaCompile> {
34-
options.release.set(17)
33+
tasks.compileJava {
34+
options.release = 25
3535
}

minestom/src/main/java/com/github/juliarn/npclib/minestom/protocol/MinestomProtocolAdapter.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
5959
import net.minestom.server.MinecraftServer;
6060
import net.minestom.server.coordinate.Pos;
61+
import net.minestom.server.coordinate.Vec;
6162
import net.minestom.server.entity.EntityType;
6263
import net.minestom.server.entity.EquipmentSlot;
6364
import net.minestom.server.entity.GameMode;
@@ -189,7 +190,7 @@ public final class MinestomProtocolAdapter implements PlatformPacketAdapter<Inst
189190
//noinspection unchecked
190191
META_ENTRY_FACTORY.put(
191192
OPTIONAL_CHAT_COMPONENT_TYPE,
192-
value -> Metadata.OptChat(((Optional<net.kyori.adventure.text.Component>) value).orElse(null)));
193+
value -> Metadata.OptComponent(((Optional<net.kyori.adventure.text.Component>) value).orElse(null)));
193194
}
194195

195196
private MinestomProtocolAdapter() {
@@ -225,13 +226,11 @@ private MinestomProtocolAdapter() {
225226
SpawnEntityPacket packet = new SpawnEntityPacket(
226227
npc.entityId(),
227228
npc.profile().uniqueId(),
228-
EntityType.PLAYER.id(),
229+
EntityType.PLAYER,
229230
position,
230231
position.yaw(),
231232
0,
232-
(short) 0,
233-
(short) 0,
234-
(short) 0);
233+
Vec.ZERO);
235234
player.sendPacket(packet);
236235
};
237236
}

0 commit comments

Comments
 (0)