… | |
… | |
576 | my $costs = dclone ($costs); |
576 | my $costs = dclone ($costs); |
577 | |
577 | |
578 | for my $key (keys %$costs) { |
578 | for my $key (keys %$costs) { |
579 | my @grepar; |
579 | my @grepar; |
580 | if ($key =~ m/^(resist_|spec_|stat_)/) { # check the special items |
580 | if ($key =~ m/^(resist_|spec_|stat_)/) { # check the special items |
581 | @grepar = @{Jeweler::getcfg (plans => $key) || []}; |
581 | eval { @grepar = @{Jeweler::getcfg (plans => $key) || []} }; |
|
|
582 | next if $@; |
582 | } else { # check the gems |
583 | } else { # check the gems |
583 | @grepar = ('gems', undef, undef, $key); |
584 | @grepar = ('gems', undef, undef, $key); |
584 | } |
585 | } |
585 | |
586 | |
586 | if ($do_remove) { |
587 | if ($do_remove) { |