update antidisconnect to update disconnect button on click

This commit is contained in:
Dewy REDACTED 2020-04-18 17:09:21 +01:00
parent ab97646cee
commit c56fe756f8
No known key found for this signature in database
GPG Key ID: 0CAA84A783228505
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ public class KamiGuiAntiDisconnect extends GuiScreen {
if (disconnectCount > 1) {
disconnectCount--;
buttonList.remove(1);
buttonList.add(new GuiButton(1, this.width / 2 - 100, 230, String.format(KamiMod.colour + "cPress me %s time(s) to disconnect.", disconnectCount)));
break;
}