diff options
author | md_5 <git@md-5.net> | 2017-12-30 13:39:54 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-12-30 13:39:54 +1100 |
commit | e1fb9cb640b9c4df167d3eb988aaa69ea533fc89 (patch) | |
tree | 2b290593a695d7d898c8919c87c6909aa34b7521 /src | |
parent | b5a10a9d6d6de739aa4082ba8ad6346da3a48370 (diff) | |
download | craftbukkit-e1fb9cb640b9c4df167d3eb988aaa69ea533fc89.tar craftbukkit-e1fb9cb640b9c4df167d3eb988aaa69ea533fc89.tar.gz craftbukkit-e1fb9cb640b9c4df167d3eb988aaa69ea533fc89.tar.lz craftbukkit-e1fb9cb640b9c4df167d3eb988aaa69ea533fc89.tar.xz craftbukkit-e1fb9cb640b9c4df167d3eb988aaa69ea533fc89.zip |
Send title timings before sending titles
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 505c58db..9405e6b4 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1434,6 +1434,9 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @Override public void sendTitle(String title, String subtitle, int fadeIn, int stay, int fadeOut) { + PacketPlayOutTitle times = new PacketPlayOutTitle(fadeIn, stay, fadeOut); + getHandle().playerConnection.sendPacket(times); + if (title != null) { PacketPlayOutTitle packetTitle = new PacketPlayOutTitle(EnumTitleAction.TITLE, CraftChatMessage.fromString(title)[0]); getHandle().playerConnection.sendPacket(packetTitle); @@ -1443,9 +1446,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { PacketPlayOutTitle packetSubtitle = new PacketPlayOutTitle(EnumTitleAction.SUBTITLE, CraftChatMessage.fromString(subtitle)[0]); getHandle().playerConnection.sendPacket(packetSubtitle); } - - PacketPlayOutTitle times = new PacketPlayOutTitle(fadeIn, stay, fadeOut); - getHandle().playerConnection.sendPacket(times); } @Override |