mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Client
====== Added hook in GuiCreateWorld to allow WorldType to present GUI on world creation.
This commit is contained in:
1 parent
cddcd9ffb3
commit
5c65939330
2 files changed
+15
-1
No files matched your search
@@ -0,0 +1,10 @@
|
||||
--- ../src-base/minecraft/net/minecraft/src/GuiCreateWorld.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ ../src-work/minecraft/net/minecraft/src/GuiCreateWorld.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -164,6 +164,7 @@
|
||||
this.field_945_b.field_6327_b = new PlayerControllerSP(this.field_945_b);
|
||||
}
|
||||
|
||||
+ WorldType.field_48637_a[this.field_46030_z].onGUICreateWorldPress();
|
||||
this.field_945_b.func_6247_b(this.field_22132_k, this.field_22134_h.func_22071_a(), new WorldSettings(var2, var9, this.field_35365_g, this.field_40232_h, WorldType.field_48637_a[this.field_46030_z]));
|
||||
this.field_945_b.func_6272_a((GuiScreen)null);
|
||||
}
|
||||
@@ -39,7 +39,7 @@
|
||||
}
|
||||
|
||||
public String func_48628_a()
|
||||
@@ -78,4 +91,65 @@
|
||||
@@ -78,4 +91,69 @@
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -103,5 +103,9 @@
|
||||
+ biomesForWorldType = newBiomesForWorld.toArray(new BiomeGenBase[0]);
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Called when 'Create New World' button is pressed before starting game
|
||||
+ */
|
||||
+ public void onGUICreateWorldPress() { }
|
||||
+
|
||||
}
|
||||
Reference in new issue
Block a user