Skip to content

Commit

Permalink
Remove Button that is not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 21, 2022
1 parent 9620811 commit 86169b0
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ else if (u2 == null || !u2.isPlayer())
collect(Collectors.toList());

this.filterElements = this.elementList;
this.currentAction = Action.CHANGE_BIOME;
this.currentAction = Action.MANAGE_DATA;
}


Expand Down Expand Up @@ -98,7 +98,6 @@ protected void build()
panelBuilder.item(1, this.createButton(Tab.IS_ONLINE));
panelBuilder.item(2, this.createButton(Tab.ALL_ISLANDS));

panelBuilder.item(5, this.createButton(Action.CHANGE_BIOME));
panelBuilder.item(6, this.createButton(Action.MANAGE_DATA));
panelBuilder.item(7, this.createButton(Action.CLEAR_DATA));

Expand Down Expand Up @@ -247,15 +246,6 @@ protected PanelItem createElementButton(Island island)

switch (this.currentAction)
{
case CHANGE_BIOME -> {
clickHandler = (panel, user, clickType, i) -> {
// TODO: Create Biome Choose Panel.

return true;
};
// Add tip
description.add(this.user.getTranslation(Constants.TIPS + "click-to-change-biome"));
}
case MANAGE_DATA -> {
clickHandler = (panel, user, clickType, i) -> {
IslandEditPanel.open(this, island);
Expand Down Expand Up @@ -369,7 +359,6 @@ private PanelItem createButton(Action button)
};

Material material = switch (button) {
case CHANGE_BIOME -> Material.GRASS_BLOCK;
case MANAGE_DATA -> Material.CRAFTING_TABLE;
case CLEAR_DATA -> Material.LAVA_BUCKET;
};
Expand Down Expand Up @@ -410,10 +399,6 @@ private enum Tab
*/
private enum Action
{
/**
* Change biome action.
*/
CHANGE_BIOME,
/**
* Manage data action.
*/
Expand Down

0 comments on commit 86169b0

Please sign in to comment.