This commit is contained in:
filoghost 2020-06-14 12:08:17 +02:00
parent c88a35cc0d
commit e42edad8be

View File

@ -92,6 +92,9 @@ public class AdvancedIconMenu extends BaseIconMenu<AdvancedIcon> {
public void refresh(Player player, Inventory inventory) {
for (int i = 0; i < inventoryGrid.getSize(); i++) {
AdvancedIcon icon = inventoryGrid.getElementAtIndex(i);
if (icon == null) {
continue;
}
if (icon.hasViewPermission() || icon.hasVariables()) {
// Then we have to refresh it