13
0

Hotfix: GUI Unconditional Delete
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2022-10-15 19:09:14 +02:00
Ursprung 19020e6e6a
Commit 00245f5bf5

Datei anzeigen

@ -189,9 +189,8 @@ public class GUI {
SteamwarUser user = getUser(p);
SWInventory inv = new SWInventory(p, 9, SchematicSystem.MESSAGE.parse("GUI_DELETE_OWN_TITLE", p, schem.generateBreadcrumbs(user)));
inv.setItem(0, SWItem.getDye(1), (byte) 1, SchematicSystem.MESSAGE.parse("CONFIRM", p), click -> {
schem.delete();
p.performCommand("schematic delete " + schem.generateBreadcrumbs(user));
SchematicSystem.MESSAGE.send("GUI_DELETE_OWN_DELETED", p, schem.generateBreadcrumbs(user));
if(back != null) {
if(schem.isDir()) {
back.reOpenDirUp();