#2769: Guardian target beam lost on server change

This commit is contained in:
md_5 2020-02-10 10:28:47 +11:00
parent 17d5dd3f94
commit a52ea50006
9 changed files with 9 additions and 0 deletions

View File

@ -149,6 +149,7 @@ class EntityMap_1_10 extends EntityMap
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
break;
}
packet.readerIndex( readerIndex );

View File

@ -150,6 +150,7 @@ class EntityMap_1_11 extends EntityMap
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
break;
}
packet.readerIndex( readerIndex );

View File

@ -150,6 +150,7 @@ class EntityMap_1_12 extends EntityMap
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
break;
}
packet.readerIndex( readerIndex );

View File

@ -150,6 +150,7 @@ class EntityMap_1_12_1 extends EntityMap
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
break;
}
packet.readerIndex( readerIndex );

View File

@ -150,6 +150,7 @@ class EntityMap_1_13 extends EntityMap
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6, protocolVersion ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 7, protocolVersion ); // fireworks (et al)
rewriteMetaVarInt( packet, oldId, newId, 13, protocolVersion ); // guardian beam
break;
}
packet.readerIndex( readerIndex );

View File

@ -149,6 +149,7 @@ class EntityMap_1_14 extends EntityMap
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 7, protocolVersion ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 8, protocolVersion ); // fireworks (et al)
rewriteMetaVarInt( packet, oldId, newId, 15, protocolVersion ); // guardian beam
break;
case 0x50 /* Entity Sound Effect : PacketPlayOutEntitySound */:
DefinedPacket.readVarInt( packet );

View File

@ -149,6 +149,7 @@ class EntityMap_1_15 extends EntityMap
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 7, protocolVersion ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 8, protocolVersion ); // fireworks (et al)
rewriteMetaVarInt( packet, oldId, newId, 16, protocolVersion ); // guardian beam
break;
case 0x51 /* Entity Sound Effect : PacketPlayOutEntitySound */:
DefinedPacket.readVarInt( packet );

View File

@ -149,6 +149,7 @@ class EntityMap_1_9 extends EntityMap
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 5 ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 12 ); // guardian beam
break;
}
packet.readerIndex( readerIndex );

View File

@ -149,6 +149,7 @@ class EntityMap_1_9_4 extends EntityMap
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
DefinedPacket.readVarInt( packet ); // Entity ID
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 5 ); // fishing hook
rewriteMetaVarInt( packet, oldId, newId, 12 ); // guardian beam
break;
}
packet.readerIndex( readerIndex );