mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-22 01:56:26 +01:00
Remove unneeded parameter
This commit is contained in:
parent
9d2a8ee101
commit
724708af00
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user