SteamWar/SpigotCore
Archiviert
13
0

Fixed position of setLevel(0) call
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
D4rkr34lm 2023-05-02 23:15:51 +02:00
Ursprung 66ee4c4243
Commit 332f52c98b

Datei anzeigen

@ -72,7 +72,6 @@ public class SWAnvilInv {
} }
public void addCloseCallback(Runnable callback) { public void addCloseCallback(Runnable callback) {
player.setLevel(0);
builder.onClose(p -> callback.run()); builder.onClose(p -> callback.run());
} }
@ -85,6 +84,7 @@ public class SWAnvilInv {
if(s.startsWith("»")) if(s.startsWith("»"))
s = s.substring(1); s = s.substring(1);
callback.accept(s); callback.accept(s);
player.setLevel(0);
return Collections.singletonList(AnvilGUI.ResponseAction.close()); return Collections.singletonList(AnvilGUI.ResponseAction.close());
} }
} }