SteamWar/SpigotCore
Archiviert
13
0

Fixes for SchematicSelector #156

Zusammengeführt
YoyoNow hat 1 Commits von fixes nach master 2022-01-04 14:08:07 +01:00 zusammengeführt

Datei anzeigen

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