Sign in to follow this
Followers
0
Infinite Terrain Indicies Not Working
By
atrain99, in General Discussion
-
Recently Browsing
No registered users viewing this page.
-
Posts
-
OK, it works.Tthanks. I wonder is there better way for doing it instead of creating new thread? System.out.println("Turning off"); Thread thread = new Thread(new CloseGui()); thread.start(); //CloseGui class public void run() { try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("closing"); Minecraft.getMinecraft().player.closeScreen(); }
-
By diesieben07 · Posted
Then you must first let the GUI open (GuiOpenEvent fires before its open!) and then call: -
I did it, but I think it's only clientside prevention. I gotta send real packet "close gui" to trigger serverside InventoryCloseEvent (or something like that).
-
By diesieben07 · Posted
To prevent the GUI from opening in GuiOpenEvent you need to cancel the event. -
By diesieben07 · Posted
The only way to make data persist is to write to to some form of file. Whether you do it explicitly, or implicitly. You cannot persist data by wishing really hard.
-
-
Topics
-
Who's Online (See full list)