add libgui dependency for production

This commit is contained in:
Joseph Garcia 2020-12-22 20:30:03 -06:00
parent ffb44737bf
commit 2ade757721
2 changed files with 1 additions and 2 deletions

View File

@ -40,6 +40,7 @@ dependencies {
include 'com.alibaba:fastjson:1.2.56'
include 'com.googlecode.json-simple:json-simple:1.1.1'
include 'com.cedarsoftware:json-io:4.10.1'
include "io.github.cottonmc:LibGui:3.2.2+1.16.3"
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.

View File

@ -70,7 +70,6 @@ public class ButtonGUI extends LightweightGuiDescription {
WButton button = new WButton(new TranslatableText(name.getText()));
button.setOnClick(() -> {
if (isDeleteToggled.getToggle()) {
System.out.println("Should delete " + button.getLabel());
ConfigFile.removeObject(newJsonObject);
root.remove(button);
} else {
@ -104,7 +103,6 @@ public class ButtonGUI extends LightweightGuiDescription {
WButton button = new WButton(new TranslatableText(name));
button.setOnClick(() -> {
if (isDeleteToggled.getToggle()) {
System.out.println("Should delete " + button.getLabel());
ConfigFile.removeObject(object);
root.remove(button);
} else {