mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 00:38:36 +00:00
Fixup dropping again
This commit is contained in:
@@ -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