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

Fixed 1.9 -> 1.8 potion metadata packet order (#2765)

Dieser Commit ist enthalten in:
RK_01 2021-12-08 12:49:13 +01:00 committet von GitHub
Ursprung a1a0926c4b
Commit 64c11b1f8f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -114,7 +114,7 @@ public class SpawnPackets {
int typeID = wrapper.get(Type.BYTE, 0);
if (Entity1_10Types.getTypeFromId(typeID, true) == Entity1_10Types.EntityType.SPLASH_POTION) {
// Convert this to meta data, woo!
PacketWrapper metaPacket = wrapper.create(0x39, new PacketHandler() {
PacketWrapper metaPacket = wrapper.create(ClientboundPackets1_9.ENTITY_METADATA, new PacketHandler() {
@Override
public void handle(PacketWrapper wrapper) throws Exception {
wrapper.write(Type.VAR_INT, entityID);
@ -127,7 +127,10 @@ public class SpawnPackets {
wrapper.write(Types1_9.METADATA_LIST, meta);
}
});
metaPacket.scheduleSend(Protocol1_9To1_8.class);
// Fix packet order
wrapper.send(Protocol1_9To1_8.class);
metaPacket.send(Protocol1_9To1_8.class);
wrapper.cancel();
}
}
});