Fixed issue with anvil menu under bedrock
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
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:
Ursprung
6915b52eef
Commit
66ee4c4243
@ -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);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren