3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-11-20 06:50:10 +01:00

Fix early achievement send

Dieser Commit ist enthalten in:
KennyTV 2021-06-01 20:17:10 +02:00
Ursprung 7d03831ba8
Commit 2876495b62
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -160,7 +160,7 @@ public class EntityPackets1_12 extends LegacyEntityRewriter<Protocol1_11_1To1_12
wrapper.write(Type.STRING, "achievement.openInventory"); wrapper.write(Type.STRING, "achievement.openInventory");
wrapper.write(Type.VAR_INT, 1); wrapper.write(Type.VAR_INT, 1);
wrapper.send(Protocol1_11_1To1_12.class); wrapper.scheduleSend(Protocol1_11_1To1_12.class);
} }
}); });
} }

Datei anzeigen

@ -996,20 +996,20 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
PacketWrapper blockUpdateRemove = PacketWrapper.create(0x0B, null, user); PacketWrapper blockUpdateRemove = PacketWrapper.create(0x0B, null, user);
blockUpdateRemove.write(Type.POSITION, position); blockUpdateRemove.write(Type.POSITION, position);
blockUpdateRemove.write(Type.VAR_INT, 0); blockUpdateRemove.write(Type.VAR_INT, 0);
blockUpdateRemove.send(Protocol1_12_2To1_13.class, true); blockUpdateRemove.scheduleSend(Protocol1_12_2To1_13.class);
// Create the flowerpot // Create the flowerpot
PacketWrapper blockCreate = PacketWrapper.create(0x0B, null, user); PacketWrapper blockCreate = PacketWrapper.create(0x0B, null, user);
blockCreate.write(Type.POSITION, position); blockCreate.write(Type.POSITION, position);
blockCreate.write(Type.VAR_INT, Protocol1_12_2To1_13.MAPPINGS.getNewBlockStateId(blockState)); blockCreate.write(Type.VAR_INT, Protocol1_12_2To1_13.MAPPINGS.getNewBlockStateId(blockState));
blockCreate.send(Protocol1_12_2To1_13.class, true); blockCreate.scheduleSend(Protocol1_12_2To1_13.class);
// Send a block entity update // Send a block entity update
PacketWrapper wrapper = PacketWrapper.create(0x09, null, user); PacketWrapper wrapper = PacketWrapper.create(0x09, null, user);
wrapper.write(Type.POSITION, position); wrapper.write(Type.POSITION, position);
wrapper.write(Type.UNSIGNED_BYTE, (short) 5); wrapper.write(Type.UNSIGNED_BYTE, (short) 5);
wrapper.write(Type.NBT, nbt); wrapper.write(Type.NBT, nbt);
wrapper.send(Protocol1_12_2To1_13.class, true); wrapper.scheduleSend(Protocol1_12_2To1_13.class);
} }
} }