iutils: equipment.isNothingEquipped() fix
This commit is contained in:
parent
319d8a5392
commit
52776ed537
|
@ -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"
|
||||
|
|
|
@ -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
Binary file not shown.
Loading…
Reference in New Issue