Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Small fixes and formatting
Dieser Commit ist enthalten in:
Ursprung
f6bb1b48f5
Commit
9c5c181389
@ -28,7 +28,7 @@ public class BaseProtocol extends Protocol {
|
|||||||
@Override
|
@Override
|
||||||
protected void registerPackets() {
|
protected void registerPackets() {
|
||||||
/* Outgoing Packets */
|
/* Outgoing Packets */
|
||||||
registerOutgoing(State.STATUS, 0x00, 0x00, new PacketRemapper() {
|
registerOutgoing(State.STATUS, 0x00, 0x00, new PacketRemapper() { // Status Response Packet
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.STRING);
|
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.STATUS, 0x01, 0x01); // Status Pong Packet
|
||||||
|
|
||||||
registerOutgoing(State.LOGIN, 0x00, 0x00); // Login Disconnect Packet
|
registerOutgoing(State.LOGIN, 0x00, 0x00); // Login Disconnect Packet
|
||||||
|
@ -146,6 +146,7 @@ public class EntityPackets {
|
|||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
public void handle(PacketWrapper wrapper) throws Exception {
|
||||||
Item stack = wrapper.get(Type.ITEM, 0);
|
Item stack = wrapper.get(Type.ITEM, 0);
|
||||||
ItemRewriter.toClient(stack);
|
ItemRewriter.toClient(stack);
|
||||||
|
wrapper.set(Type.ITEM, 0, stack);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Blocking
|
// Blocking
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren