geforkt von Mirrors/Velocity
Fix adventure title times
Dieser Commit ist enthalten in:
Ursprung
26f3cb43c7
Commit
4c5c641e5f
@ -308,9 +308,12 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
connection.delayedWrite(titlePkt);
|
connection.delayedWrite(titlePkt);
|
||||||
|
|
||||||
TitlePacket timesPkt = TitlePacket.timesForProtocolVersion(this.getProtocolVersion());
|
TitlePacket timesPkt = TitlePacket.timesForProtocolVersion(this.getProtocolVersion());
|
||||||
timesPkt.setFadeIn((int) DurationUtils.convertDurationToTicks(title.fadeInTime()));
|
net.kyori.adventure.title.Title.Times times = title.times();
|
||||||
timesPkt.setStay((int) DurationUtils.convertDurationToTicks(title.stayTime()));
|
if (times != null) {
|
||||||
timesPkt.setFadeOut((int) DurationUtils.convertDurationToTicks(title.fadeOutTime()));
|
timesPkt.setFadeIn((int) DurationUtils.convertDurationToTicks(times.fadeIn()));
|
||||||
|
timesPkt.setStay((int) DurationUtils.convertDurationToTicks(times.stay()));
|
||||||
|
timesPkt.setFadeOut((int) DurationUtils.convertDurationToTicks(times.fadeOut()));
|
||||||
|
}
|
||||||
connection.delayedWrite(timesPkt);
|
connection.delayedWrite(timesPkt);
|
||||||
|
|
||||||
connection.flush();
|
connection.flush();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren