Fix fishing hooks / spectral arrows after switching servers on 1.15.x

This commit is contained in:
md_5 2019-12-18 12:39:49 +11:00
parent 1f24591a0d
commit 4204fa2966

View File

@ -96,9 +96,9 @@ class EntityMap_1_15 extends EntityMap
DefinedPacket.readUUID( packet ); DefinedPacket.readUUID( packet );
int type = DefinedPacket.readVarInt( packet ); int type = DefinedPacket.readVarInt( packet );
if ( type == 2 || type == 101 || type == 71 ) // arrow, fishing_bobber or spectral_arrow if ( type == 2 || type == 102 || type == 72 ) // arrow, fishing_bobber or spectral_arrow
{ {
if ( type == 2 || type == 71 ) // arrow or spectral_arrow if ( type == 2 || type == 72 ) // arrow or spectral_arrow
{ {
oldId = oldId + 1; oldId = oldId + 1;
newId = newId + 1; newId = newId + 1;