Made pause screen appear on spawn
Made pause screen appear on spawn so the mouse pointer can get captured
This commit is contained in:
parent
f274a9b909
commit
6cb12f6049
|
@ -24,11 +24,17 @@ public final class HUDScreen extends Screen {
|
||||||
public String hoveredPlayer = null;
|
public String hoveredPlayer = null;
|
||||||
public int ticks = 0;
|
public int ticks = 0;
|
||||||
|
|
||||||
|
private boolean firstTimeLaunch = true;
|
||||||
|
|
||||||
public HUDScreen(Minecraft var1, int var2, int var3) {
|
public HUDScreen(Minecraft var1, int var2, int var3) {
|
||||||
this.mc = var1;
|
this.mc = var1;
|
||||||
this.width = var2 * 240 / var3;
|
this.width = var2 * 240 / var3;
|
||||||
this.height = var3 * 240 / var3;
|
this.height = var3 * 240 / var3;
|
||||||
|
|
||||||
|
if(firstTimeLaunch) {
|
||||||
|
mc.setCurrentScreen(new PauseScreen());
|
||||||
|
firstTimeLaunch = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void render(float var1, boolean var2, int var3, int var4) {
|
public final void render(float var1, boolean var2, int var3, int var4) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user