()
| 493 | } |
| 494 | |
| 495 | @Override |
| 496 | public void disconnectFromWorld() { |
| 497 | boolean isOnIntegratedServer = getMinecraft().w(); |
| 498 | boolean isConnectedToRealms = getMinecraft().Z(); |
| 499 | if (getWorld() != null) { |
| 500 | getWorld().S(); |
| 501 | } |
| 502 | getMinecraft().a((cqv) null); |
| 503 | if (isOnIntegratedServer) { |
| 504 | displayScreen(new cjx()); |
| 505 | } else if (isConnectedToRealms) { |
| 506 | RealmsBridge realmsBridge = new RealmsBridge(); |
| 507 | realmsBridge.switchToRealms(new cjx()); |
| 508 | } else { |
| 509 | displayScreen(new clm(new cjx())); |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | @Override |
| 514 | public IServerPinger getServerPinger() { |
nothing calls this directly
no test coverage detected