This commit is contained in:
Brianna 2019-07-20 16:41:29 -04:00
parent f973361a7f
commit 187ebc83c4

View File

@ -256,10 +256,10 @@ public class GUIOverview extends AbstractGUI {
module.runButtonPress(player, hopper, type); module.runButtonPress(player, hopper, type);
} }
if (inventory.getItem(slot).getItemMeta() if (inventory.getItem(slot).getItemMeta()
.getDisplayName().equals(plugin.getLocale().getMessage("interface.hopper.filtertitle"))) { .getDisplayName().equals(plugin.getLocale().getMessage("interface.hopper.filtertitle").getMessage())) {
new GUIFilter(plugin, hopper, player); new GUIFilter(plugin, hopper, player);
} else if (inventory.getItem(slot).getItemMeta() } else if (inventory.getItem(slot).getItemMeta()
.getDisplayName().equals(plugin.getLocale().getMessage("interface.hopper.perltitle"))) { .getDisplayName().equals(plugin.getLocale().getMessage("interface.hopper.perltitle").getMessage())) {
if (type == ClickType.LEFT) { if (type == ClickType.LEFT) {
if (hopper.getLinkedBlocks() != null) { if (hopper.getLinkedBlocks() != null) {
plugin.getTeleportHandler().tpEntity(player, hopper); plugin.getTeleportHandler().tpEntity(player, hopper);
@ -276,7 +276,7 @@ public class GUIOverview extends AbstractGUI {
constructGUI(); constructGUI();
} }
} else if (inventory.getItem(slot).getItemMeta() } else if (inventory.getItem(slot).getItemMeta()
.getDisplayName().equals(plugin.getLocale().getMessage("interface.hopper.synchopper"))) { .getDisplayName().equals(plugin.getLocale().getMessage("interface.hopper.synchopper").getMessage())) {
if (type == ClickType.RIGHT) { if (type == ClickType.RIGHT) {
plugin.getLocale().getMessage("event.hopper.desync").sendPrefixedMessage(player); plugin.getLocale().getMessage("event.hopper.desync").sendPrefixedMessage(player);
hopper.clearLinkedBlocks(); hopper.clearLinkedBlocks();