File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
src/main/java/com/github/juliarn/npclib/minestom/protocol Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff 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 > {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ netty = "4.1.117.Final"
1515# platform api versions
1616sponge = " 10.0.0"
1717paper = " 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
2121minecraft = " 1.21.9"
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 5858import net .kyori .adventure .text .serializer .legacy .LegacyComponentSerializer ;
5959import net .minestom .server .MinecraftServer ;
6060import net .minestom .server .coordinate .Pos ;
61+ import net .minestom .server .coordinate .Vec ;
6162import net .minestom .server .entity .EntityType ;
6263import net .minestom .server .entity .EquipmentSlot ;
6364import 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 }
You can’t perform that action at this time.
0 commit comments