#1941: Fix modded client+server in some cases

This commit is contained in:
md_5 2016-08-21 09:02:37 +10:00
parent 504d3c0529
commit b86a33d058

View File

@ -89,8 +89,11 @@ public class UpstreamBridge extends PacketHandler
@Override @Override
public void handle(PacketWrapper packet) throws Exception public void handle(PacketWrapper packet) throws Exception
{ {
con.getEntityRewrite().rewriteServerbound( packet.buf, con.getClientEntityId(), con.getServerEntityId() ); if ( con.getServer() != null )
con.getServer().getCh().write( packet ); {
con.getEntityRewrite().rewriteServerbound( packet.buf, con.getClientEntityId(), con.getServerEntityId() );
con.getServer().getCh().write( packet );
}
} }
@Override @Override