Added var for easier changing idle time.
This commit is contained in:
@@ -25,6 +25,7 @@ public class GuiConfig extends GuiScreen {
|
|||||||
private int guiShowBaseHeight;
|
private int guiShowBaseHeight;
|
||||||
private GuiType guiShowType;
|
private GuiType guiShowType;
|
||||||
|
|
||||||
|
private int waitingTimeMS = 2000;
|
||||||
private int guiShowState;
|
private int guiShowState;
|
||||||
private long lastTime = 0;
|
private long lastTime = 0;
|
||||||
private long currentTime;
|
private long currentTime;
|
||||||
@@ -82,7 +83,7 @@ public class GuiConfig extends GuiScreen {
|
|||||||
drawCraftingTable();
|
drawCraftingTable();
|
||||||
// Insert Gui by selected Type
|
// Insert Gui by selected Type
|
||||||
currentTime = Util.client.getSystemTime();
|
currentTime = Util.client.getSystemTime();
|
||||||
if(currentTime - lastTime > 2000){
|
if(currentTime - lastTime > waitingTimeMS){
|
||||||
nextShowGui();
|
nextShowGui();
|
||||||
lastTime = Util.client.getSystemTime();
|
lastTime = Util.client.getSystemTime();
|
||||||
currentTime = Util.client.getSystemTime();
|
currentTime = Util.client.getSystemTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user