Advertisement
riking

Untitled

May 19th, 2014
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.14 KB | None | 0 0
  1.  src/main/java/net/minecraft/server/NetworkManager.java | 8 ++++++++
  2.  1 file changed, 8 insertions(+)
  3.  
  4. diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java
  5. index 1b080c7..e02cc9c 100644
  6. --- a/src/main/java/net/minecraft/server/NetworkManager.java
  7. +++ b/src/main/java/net/minecraft/server/NetworkManager.java
  8. @@ -80,6 +80,14 @@ public class NetworkManager extends SimpleChannelInboundHandler {
  9.  
  10.      protected void a(ChannelHandlerContext channelhandlercontext, Packet packet) {
  11.          if (this.m.isOpen()) {
  12. +            // CraftBukkit start - Process conversation input on main thread
  13. +            if (packet instanceof PacketPlayInChat && this.o instanceof PlayerConnection) {
  14. +                if (((PlayerConnection) this.o).player.getBukkitEntity().isConversing()) {
  15. +                    this.k.add(packet);
  16. +                    return;
  17. +                }
  18. +            }
  19. +            // CraftBukkit end
  20.              if (packet.a()) {
  21.                  packet.handle(this.o);
  22.             } else {
  23.                 this.k.add(packet);
  24.             }
  25.         }
  26.     }
  27. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement