SteamWar/SpigotCore
Archiviert
13
0

Merge pull request 'Fixes for SchematicSelector' (#156) from fixes into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #156
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
YoyoNow 2022-01-04 14:08:07 +01:00
Commit ee4fbe7853

Datei anzeigen

@ -270,7 +270,9 @@ public class SchematicSelector {
SWAnvilInv swAnvilInv = new SWAnvilInv(player, Core.MESSAGE.parse("SCHEM_SELECTOR_FILTER_ENTER_OWNER", player)); SWAnvilInv swAnvilInv = new SWAnvilInv(player, Core.MESSAGE.parse("SCHEM_SELECTOR_FILTER_ENTER_OWNER", player));
swAnvilInv.setItem(Material.PLAYER_HEAD); swAnvilInv.setItem(Material.PLAYER_HEAD);
swAnvilInv.setCallback(s -> { swAnvilInv.setCallback(s -> {
if(SteamwarUser.get(s) != null) {
filter.setOwner(SteamwarUser.get(s).getId()); filter.setOwner(SteamwarUser.get(s).getId());
}
openFilter(); openFilter();
}); });
swAnvilInv.open(); swAnvilInv.open();
@ -335,11 +337,13 @@ public class SchematicSelector {
inv.setItem(7, SWItem.getDye(1), Core.MESSAGE.parse("SCHEM_SELECTOR_CANCEL", player), clickType -> { inv.setItem(7, SWItem.getDye(1), Core.MESSAGE.parse("SCHEM_SELECTOR_CANCEL", player), clickType -> {
filter.reset(); filter.reset();
depth = 0;
openList(null); openList(null);
}); });
inv.setItem(8, SWItem.getDye(10), Core.MESSAGE.parse("SCHEM_SELECTOR_GO", player), clickType -> { inv.setItem(8, SWItem.getDye(10), Core.MESSAGE.parse("SCHEM_SELECTOR_GO", player), clickType -> {
filter.setFilter(true); filter.setFilter(true);
injectable.onFilterApply(this); injectable.onFilterApply(this);
depth = 0;
openList(null); openList(null);
}); });