3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 00:22:51 +01:00

Fix crash on scoreboard deletion

Dieser Commit ist enthalten in:
Matsv 2018-03-20 14:31:14 +01:00
Ursprung db57916af4
Commit b7ca30efe8

Datei anzeigen

@ -269,7 +269,8 @@ public class ProtocolSnapshotTo1_12_2 extends Protocol {
handler(new PacketHandler() { handler(new PacketHandler() {
@Override @Override
public void handle(PacketWrapper wrapper) throws Exception { public void handle(PacketWrapper wrapper) throws Exception {
if (wrapper.get(Type.BYTE, 0) == 0 || wrapper.get(Type.BYTE, 0) == 1) { // On create or update
if (wrapper.get(Type.BYTE, 0) == 0 || wrapper.get(Type.BYTE, 0) == 2) {
wrapper.passthrough(Type.STRING); wrapper.passthrough(Type.STRING);
String type = wrapper.read(Type.STRING); String type = wrapper.read(Type.STRING);
// integer or hearts // integer or hearts