blob: 4d415615f740a233e7d69d14c2b469b8b62a22c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package de.hysky.skyblocker.utils;
import net.minecraft.network.ClientConnection;
import net.minecraft.text.Text;
public final class ReconfiguringPlaceholderScreen extends BasePlaceholderScreen {
private final ClientConnection connection;
public ReconfiguringPlaceholderScreen(final ClientConnection connection) {
super(Text.translatable("connect.reconfiguring"));
this.connection = connection;
}
@Override
public void tick() {
if (this.connection.isOpen()) {
this.connection.tick();
} else {
this.connection.handleDisconnection();
}
}
}
|