mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Convert Forge to use Official mappings. Mojang released their obfuscation mappings but we have not used them up until now due to wanting to get their license to be more explicitly permissive. It is clear that their intent is to allow us to use their names for developing mods like this. See the full wording, and our interpretation here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
20 lines
1.4 KiB
Diff
20 lines
1.4 KiB
Diff
--- a/net/minecraft/client/MainWindow.java
|
|
+++ b/net/minecraft/client/MainWindow.java
|
|
@@ -86,7 +_,7 @@
|
|
GLFW.glfwWindowHint(139266, 2);
|
|
GLFW.glfwWindowHint(139267, 0);
|
|
GLFW.glfwWindowHint(139272, 0);
|
|
- this.field_198119_f = GLFW.glfwCreateWindow(this.field_198129_p, this.field_198130_q, p_i51170_5_, this.field_198125_l && monitor != null ? monitor.func_197995_f() : 0L, 0L);
|
|
+ this.field_198119_f = net.minecraftforge.fml.loading.progress.EarlyProgressVisualization.INSTANCE.handOffWindow(()->this.field_198129_p, ()->this.field_198130_q, ()->p_i51170_5_, ()->this.field_198125_l && monitor != null ? monitor.func_197995_f() : 0L);
|
|
if (monitor != null) {
|
|
VideoMode videomode = monitor.func_197992_a(this.field_198125_l ? this.field_198124_k : Optional.empty());
|
|
this.field_198120_g = this.field_198127_n = monitor.func_197989_c() + videomode.func_198064_a() / 2 - this.field_198129_p / 2;
|
|
@@ -271,6 +_,7 @@
|
|
GLFW.glfwGetFramebufferSize(this.field_198119_f, aint, aint1);
|
|
this.field_198131_r = aint[0];
|
|
this.field_198132_s = aint1[0];
|
|
+ if (this.field_198132_s == 0 || this.field_198131_r==0) net.minecraftforge.fml.loading.progress.EarlyProgressVisualization.INSTANCE.updateFBSize(w->this.field_198131_r=w, h->this.field_198132_s=h);
|
|
}
|
|
|
|
private void func_198089_c(long p_198089_1_, int p_198089_3_, int p_198089_4_) {
|