File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
io/papermc/paper/connection
org/bukkit/craftbukkit/entity Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
val annotationsVersion = " 26.0.2"
13
13
// Keep in sync with paper-server adventure-text-serializer-ansi dep
14
- val adventureVersion = " 4.23 .0"
14
+ val adventureVersion = " 4.24 .0"
15
15
val bungeeCordChatVersion = " 1.21-R0.2-deprecated+build.21"
16
16
val slf4jVersion = " 2.0.16"
17
17
val log4jVersion = " 2.24.1"
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ dependencies {
134
134
implementation(" org.jline:jline-terminal-ffm:3.27.1" ) // use ffm on java 22+
135
135
implementation(" org.jline:jline-terminal-jni:3.27.1" ) // fall back to jni on java 21
136
136
implementation(" net.minecrell:terminalconsoleappender:1.3.0" )
137
- implementation(" net.kyori:adventure-text-serializer-ansi:4.23 .0" ) // Keep in sync with adventureVersion from Paper-API build file
137
+ implementation(" net.kyori:adventure-text-serializer-ansi:4.24 .0" ) // Keep in sync with adventureVersion from Paper-API build file
138
138
runtimeConfiguration(sourceSets.main.map { it.runtimeClasspath })
139
139
140
140
/*
Original file line number Diff line number Diff line change 19
19
import net .kyori .adventure .resource .ResourcePackInfo ;
20
20
import net .kyori .adventure .resource .ResourcePackRequest ;
21
21
import net .minecraft .network .chat .Component ;
22
+ import net .minecraft .network .protocol .common .ClientboundClearDialogPacket ;
22
23
import net .minecraft .network .protocol .common .ClientboundResourcePackPopPacket ;
23
24
import net .minecraft .network .protocol .common .ClientboundResourcePackPushPacket ;
24
25
import net .minecraft .network .protocol .common .ClientboundShowDialogPacket ;
@@ -73,6 +74,11 @@ public void showDialog(final DialogLike dialog) {
73
74
this .handle .send (new ClientboundShowDialogPacket (PaperDialog .bukkitToMinecraftHolder ((Dialog ) dialog )));
74
75
}
75
76
77
+ @ Override
78
+ public void closeDialog () {
79
+ this .handle .send (ClientboundClearDialogPacket .INSTANCE );
80
+ }
81
+
76
82
@ Override
77
83
public Pointers pointers () {
78
84
if (this .adventurePointers == null ) {
Original file line number Diff line number Diff line change 57
57
import net .minecraft .core .SectionPos ;
58
58
import net .minecraft .network .chat .Component ;
59
59
import net .minecraft .network .chat .PlayerChatMessage ;
60
+ import net .minecraft .network .protocol .common .ClientboundClearDialogPacket ;
60
61
import net .minecraft .network .protocol .common .ClientboundCustomPayloadPacket ;
61
62
import net .minecraft .network .protocol .common .ClientboundResourcePackPopPacket ;
62
63
import net .minecraft .network .protocol .common .ClientboundResourcePackPushPacket ;
@@ -2497,6 +2498,12 @@ public void showDialog(final DialogLike dialog) {
2497
2498
this .getHandle ().openDialog (PaperDialog .bukkitToMinecraftHolder ((Dialog ) dialog ));
2498
2499
}
2499
2500
2501
+ @ Override
2502
+ public void closeDialog () {
2503
+ if (this .getHandle ().connection == null ) return ;
2504
+ this .getHandle ().connection .send (ClientboundClearDialogPacket .INSTANCE );
2505
+ }
2506
+
2500
2507
// Paper start - more resource pack API
2501
2508
@ Override
2502
2509
public org .bukkit .event .player .PlayerResourcePackStatusEvent .Status getResourcePackStatus () {
You can’t perform that action at this time.
0 commit comments