SteamWar/SpigotCore
Archiviert
13
0

Merge pull request 'Fixed anvil menu issue under bedrock (Fightsystem Issue No. 380)' (#239) from fix_for_anvil_menu_for_bedrock into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #239
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2023-05-03 12:35:58 +02:00
Commit a49a834ff3

Datei anzeigen

@ -76,6 +76,7 @@ public class SWAnvilInv {
} }
public void open() { public void open() {
player.setLevel(1);
builder.open(player); builder.open(player);
} }
@ -83,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());
} }
} }