mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-22 10:05:17 +01:00
Fix NPE
This commit is contained in:
parent
c88a35cc0d
commit
e42edad8be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user