SteamWar/SpigotCore
Archiviert
13
0

Fixed issue with anvil menu under bedrock
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

- Added: player level is set to 1 on opening anvil menu
- Added: player level is set to 0 on anvil menu close
Dieser Commit ist enthalten in:
D4rkr34lm 2023-05-02 21:37:10 +02:00
Ursprung 6915b52eef
Commit 66ee4c4243

Datei anzeigen

@ -72,10 +72,12 @@ public class SWAnvilInv {
}
public void addCloseCallback(Runnable callback) {
player.setLevel(0);
builder.onClose(p -> callback.run());
}
public void open() {
player.setLevel(1);
builder.open(player);
}