mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-12-06 11:17:25 +00:00
Fixup dropping again
This commit is contained in:
1 parent
3eedd24f50
commit
4dd586ccd5
1 file changed
+3
-2
@@ -32,9 +32,10 @@ public class Drop implements Strategy {
|
|||||||
|
|
||||||
// Return the item id + 1 (odd way inventory items are handled)
|
// Return the item id + 1 (odd way inventory items are handled)
|
||||||
public int[] inventoryItemIDs(int[] itemIDs) {
|
public int[] inventoryItemIDs(int[] itemIDs) {
|
||||||
|
int[] items = new int[itemIDs.length];
|
||||||
for(int i = 0; i < itemIDs.length; i++) {
|
for(int i = 0; i < itemIDs.length; i++) {
|
||||||
++itemIDs[i];
|
items[i] = itemIDs[i] + 1;
|
||||||
}
|
}
|
||||||
return itemIDs;
|
return items;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user