3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-17 01:23:43 +02:00

Small fixes and formatting

Dieser Commit ist enthalten in:
Hugo Kerstens 2016-03-23 00:26:38 +01:00
Ursprung 71a9c90fe9
Commit 45f99d4c31
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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

Datei anzeigen

@ -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