#2769: Guardian target beam lost on server change
This commit is contained in:
parent
17d5dd3f94
commit
a52ea50006
@ -149,6 +149,7 @@ class EntityMap_1_10 extends EntityMap
|
|||||||
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
|
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
|
||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
@ -150,6 +150,7 @@ class EntityMap_1_11 extends EntityMap
|
|||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
||||||
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
|
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
@ -150,6 +150,7 @@ class EntityMap_1_12 extends EntityMap
|
|||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
||||||
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
|
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
@ -150,6 +150,7 @@ class EntityMap_1_12_1 extends EntityMap
|
|||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6 ); // fishing hook
|
||||||
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
|
rewriteMetaVarInt( packet, oldId, newId, 7 ); // fireworks (et al)
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 13 ); // guardian beam
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
@ -150,6 +150,7 @@ class EntityMap_1_13 extends EntityMap
|
|||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6, protocolVersion ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 6, protocolVersion ); // fishing hook
|
||||||
rewriteMetaVarInt( packet, oldId, newId, 7, protocolVersion ); // fireworks (et al)
|
rewriteMetaVarInt( packet, oldId, newId, 7, protocolVersion ); // fireworks (et al)
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 13, protocolVersion ); // guardian beam
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
@ -149,6 +149,7 @@ class EntityMap_1_14 extends EntityMap
|
|||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 7, protocolVersion ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 7, protocolVersion ); // fishing hook
|
||||||
rewriteMetaVarInt( packet, oldId, newId, 8, protocolVersion ); // fireworks (et al)
|
rewriteMetaVarInt( packet, oldId, newId, 8, protocolVersion ); // fireworks (et al)
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 15, protocolVersion ); // guardian beam
|
||||||
break;
|
break;
|
||||||
case 0x50 /* Entity Sound Effect : PacketPlayOutEntitySound */:
|
case 0x50 /* Entity Sound Effect : PacketPlayOutEntitySound */:
|
||||||
DefinedPacket.readVarInt( packet );
|
DefinedPacket.readVarInt( packet );
|
||||||
|
@ -149,6 +149,7 @@ class EntityMap_1_15 extends EntityMap
|
|||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 7, protocolVersion ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 7, protocolVersion ); // fishing hook
|
||||||
rewriteMetaVarInt( packet, oldId, newId, 8, protocolVersion ); // fireworks (et al)
|
rewriteMetaVarInt( packet, oldId, newId, 8, protocolVersion ); // fireworks (et al)
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 16, protocolVersion ); // guardian beam
|
||||||
break;
|
break;
|
||||||
case 0x51 /* Entity Sound Effect : PacketPlayOutEntitySound */:
|
case 0x51 /* Entity Sound Effect : PacketPlayOutEntitySound */:
|
||||||
DefinedPacket.readVarInt( packet );
|
DefinedPacket.readVarInt( packet );
|
||||||
|
@ -149,6 +149,7 @@ class EntityMap_1_9 extends EntityMap
|
|||||||
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
|
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
|
||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 5 ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 5 ); // fishing hook
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 12 ); // guardian beam
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
@ -149,6 +149,7 @@ class EntityMap_1_9_4 extends EntityMap
|
|||||||
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
|
case 0x39 /* EntityMetadata : PacketPlayOutEntityMetadata */:
|
||||||
DefinedPacket.readVarInt( packet ); // Entity ID
|
DefinedPacket.readVarInt( packet ); // Entity ID
|
||||||
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 5 ); // fishing hook
|
rewriteMetaVarInt( packet, oldId + 1, newId + 1, 5 ); // fishing hook
|
||||||
|
rewriteMetaVarInt( packet, oldId, newId, 12 ); // guardian beam
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
Loading…
Reference in New Issue
Block a user