mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Allow users to middle click in armor invsee (#3893)
This commit is contained in:
parent
1838354b70
commit
5528b5b92c
1 changed files with 1 additions and 1 deletions
|
@ -807,7 +807,7 @@ public class EssentialsPlayerListener implements Listener {
|
|||
} else if (type == InventoryType.CHEST && top.getSize() == 9) {
|
||||
final User user = ess.getUser((Player) event.getWhoClicked());
|
||||
final InventoryHolder invHolder = top.getHolder();
|
||||
if (invHolder instanceof HumanEntity && user.isInvSee()) {
|
||||
if (invHolder instanceof HumanEntity && user.isInvSee() && event.getClick() != ClickType.MIDDLE) {
|
||||
event.setCancelled(true);
|
||||
refreshPlayer = user.getBase();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue