tmcw_diff/mypatch/2. Expose guiIsEnable on De...

25 lines
736 B
Diff

*** net/minecraft/src/DedicatedServer.java Fri Feb 4 19:29:58 2022
--- net/minecraft/src/DedicatedServer.java Sat Feb 5 05:33:35 2022
***************
*** 356,365 ****
--- 356,374 ----
{
return this.guiIsEnabled;
}
/**
+ * Custom patch to avoid exposing MinecraftServerGui to the client
+ * @param b Whenever or not you want to enable the GUI
+ */
+ public void setGuiEnabled(boolean b)
+ {
+ this.guiIsEnabled = b;
+ }
+
+ /**
* On dedicated does nothing. On integrated, sets commandsAllowedForAll, gameType and allows external connections.
*/
public String shareToLAN(EnumGameType par1EnumGameType, boolean par2)
{
return "";