iutils: equipment.isNothingEquipped() fix

This commit is contained in:
illumineawake 2021-08-15 23:45:29 +10:00
parent 319d8a5392
commit 52776ed537
4 changed files with 7 additions and 3 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.4.3"
version = "4.4.4"
project.extra["PluginName"] = "iUtils"
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"

View File

@ -24,7 +24,11 @@ public class Equipment {
}
public boolean isNothingEquipped() {
return game.container(94) == null;
if (game.container(94) == null) {
return true;
}
return !Arrays.stream(game.container(94).getItems()).anyMatch(e -> e.getId() != -1);
}
public int quantity(int id) {

File diff suppressed because one or more lines are too long