Remove unneeded parameter

This commit is contained in:
filoghost 2020-10-13 16:30:41 +02:00
parent 9d2a8ee101
commit 724708af00
2 changed files with 3 additions and 3 deletions

View File

@ -19,8 +19,8 @@ import org.jetbrains.annotations.NotNull;
public class DefaultMenuView implements MenuView {
private final BaseMenu menu;
private final InventoryGrid bukkitInventory;
private final Player viewer;
private final InventoryGrid bukkitInventory;
public DefaultMenuView(BaseMenu menu, Player viewer) {
this.menu = menu;
@ -45,7 +45,7 @@ public class DefaultMenuView implements MenuView {
}
}
public void open(Player viewer) {
public void open() {
viewer.openInventory(bukkitInventory.getInventory());
}

View File

@ -65,7 +65,7 @@ public abstract class BaseMenu implements Menu {
Preconditions.notNull(player, "player");
DefaultMenuView menuView = new DefaultMenuView(this, player);
menuView.open(player);
menuView.open();
return menuView;
}