Don't forward most packets while join is still in progress

This commit is contained in:
Daniel Naylor
2018-09-06 19:38:50 +01:00
parent 7a5857a0b2
commit e86968e899

View File

@@ -88,7 +88,7 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler {
if (status == MessageHandler.ForwardStatus.FORWARD) {
connection.getPlayer().getConnection().write(pm);
}
} else {
} else if (connection.hasCompletedJoin()) {
// Just forward the packet on. We don't have anything to handle at this time.
connection.getPlayer().getConnection().write(packet);
}