From 45f99d4c31682ee5950df9d7278a09307099662e Mon Sep 17 00:00:00 2001 From: Hugo Kerstens Date: Wed, 23 Mar 2016 00:26:38 +0100 Subject: [PATCH] Small fixes and formatting --- .../us/myles/ViaVersion/protocols/base/BaseProtocol.java | 5 +++-- .../protocols/protocol1_9to1_8/packets/EntityPackets.java | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java b/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java index be0ba0638..4ef3128f0 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java +++ b/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java @@ -28,7 +28,7 @@ public class BaseProtocol extends Protocol { @Override protected void registerPackets() { /* Outgoing Packets */ - registerOutgoing(State.STATUS, 0x00, 0x00, new PacketRemapper() { + registerOutgoing(State.STATUS, 0x00, 0x00, new PacketRemapper() { // Status Response Packet @Override public void registerMap() { map(Type.STRING); @@ -59,7 +59,8 @@ public class BaseProtocol extends Protocol { } }); } - }); // Status Response Packet + }); + registerOutgoing(State.STATUS, 0x01, 0x01); // Status Pong Packet registerOutgoing(State.LOGIN, 0x00, 0x00); // Login Disconnect Packet diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java index 2b61e8b00..c3be333ce 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java @@ -146,6 +146,7 @@ public class EntityPackets { public void handle(PacketWrapper wrapper) throws Exception { Item stack = wrapper.get(Type.ITEM, 0); ItemRewriter.toClient(stack); + wrapper.set(Type.ITEM, 0, stack); } }); // Blocking