#2477: Fix entity rewrites not applying
This commit is contained in:
parent
c9f22868b3
commit
176b75b97e
@ -101,7 +101,7 @@ public class DownstreamBridge extends PacketHandler
|
|||||||
@Override
|
@Override
|
||||||
public void handle(PacketWrapper packet) throws Exception
|
public void handle(PacketWrapper packet) throws Exception
|
||||||
{
|
{
|
||||||
con.getEntityRewrite().rewriteClientbound( packet.buf, con.getServerEntityId(), con.getClientEntityId() );
|
con.getEntityRewrite().rewriteClientbound( packet.buf, con.getServerEntityId(), con.getClientEntityId(), con.getPendingConnection().getVersion() );
|
||||||
con.sendPacket( packet );
|
con.sendPacket( packet );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ public class UpstreamBridge extends PacketHandler
|
|||||||
{
|
{
|
||||||
if ( con.getServer() != null )
|
if ( con.getServer() != null )
|
||||||
{
|
{
|
||||||
con.getEntityRewrite().rewriteServerbound( packet.buf, con.getClientEntityId(), con.getServerEntityId() );
|
con.getEntityRewrite().rewriteServerbound( packet.buf, con.getClientEntityId(), con.getServerEntityId(), con.getPendingConnection().getVersion() );
|
||||||
con.getServer().getCh().write( packet );
|
con.getServer().getCh().write( packet );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ public abstract class EntityMap
|
|||||||
DefinedPacket.readString( packet );
|
DefinedPacket.readString( packet );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 14: // particle
|
case 15: // particle
|
||||||
int particleId = DefinedPacket.readVarInt( packet );
|
int particleId = DefinedPacket.readVarInt( packet );
|
||||||
switch ( particleId )
|
switch ( particleId )
|
||||||
{
|
{
|
||||||
@ -162,7 +162,10 @@ public abstract class EntityMap
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
if ( type >= 6 )
|
||||||
|
{
|
||||||
type--;
|
type--;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user