@@ -78,7 +78,7 @@ public boolean mouseClicked(double x, double y, int button) {
7878
7979 if (allowEditAndUpload ) {
8080 // Delete Button
81- CButton delete = new CTexturedButton (20 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":Delete .png" , () -> {
81+ CButton delete = new CTexturedButton (20 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":delete .png" , () -> {
8282 DFScript .MC .setScreen (new ScriptDeletionScreen (s ));
8383 }, 0 , 0 , 1 , 0.5f , 0 , 0.5f );
8484
@@ -94,13 +94,13 @@ public boolean mouseClicked(double x, double y, int button) {
9494 // Enable or Disable Button
9595 CButton enableDisable ;
9696 if (s .disabled ()) {
97- enableDisable = new CTexturedButton (30 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":Enable .png" , () -> {
97+ enableDisable = new CTexturedButton (30 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":enable .png" , () -> {
9898 s .setDisabled (false );
9999 ScriptManager .getInstance ().saveScript (s );
100100 DFScript .MC .setScreen (new ScriptListScreen (allowEditAndUpload ));
101101 }, 0 ,0 ,1 ,0.5f ,0 ,0.5f );
102102 } else {
103- enableDisable = new CTexturedButton (30 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":Disable .png" , () -> {
103+ enableDisable = new CTexturedButton (30 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":disable .png" , () -> {
104104 s .setDisabled (true );
105105 ScriptManager .getInstance ().saveScript (s );
106106 DFScript .MC .setScreen (new ScriptListScreen (allowEditAndUpload ));
@@ -118,7 +118,7 @@ public boolean mouseClicked(double x, double y, int button) {
118118 panel .add (edit );
119119
120120 // Upload or Remove Button
121- CButton upload = new CTexturedButton (10 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":Upload .png" , () -> {
121+ CButton upload = new CTexturedButton (10 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":upload .png" , () -> {
122122 try {
123123 // Encode the script JSON to GZIP Base64
124124 byte [] bytes = Files .readAllBytes (s .getFile ().toPath ());
@@ -170,7 +170,7 @@ public boolean mouseClicked(double x, double y, int button) {
170170 }, 0 ,0 ,1 ,0.5f ,0 ,0.5f );
171171
172172 if (!Objects .equals (s .getServer (), "None" )) {
173- upload = new CTexturedButton (10 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":Un-Upload .png" , () -> {
173+ upload = new CTexturedButton (10 + addedX , y + addedY , 8 , 8 , DFScript .MOD_ID + ":unupload .png" , () -> {
174174 try {
175175 // Remove the script to the server
176176 URL url = new URL ("https://DFScript-Server.techstreetdev.repl.co/scripts/remove/" );
0 commit comments