mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-12 01:21:20 -07:00
fixed a minor bug with plunder
This commit is contained in:
parent
e386724f94
commit
754257eae0
1 changed files with 4 additions and 3 deletions
|
|
@ -18,8 +18,9 @@ public class PlunderObjectManager{
|
||||||
public List<PlunderObject> ObjectList = new ArrayList<PlunderObject>();
|
public List<PlunderObject> ObjectList = new ArrayList<PlunderObject>();
|
||||||
int originalIndex;
|
int originalIndex;
|
||||||
public boolean resetObjectsFor(Player player){
|
public boolean resetObjectsFor(Player player){
|
||||||
//loadList("plunder.tmp");
|
//Completely clear the list
|
||||||
ListIterator oliter = ObjectList.listIterator();
|
ObjectList.clear();
|
||||||
|
/*ListIterator oliter = ObjectList.listIterator();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while(oliter.hasNext()){
|
while(oliter.hasNext()){
|
||||||
PlunderObject current = (PlunderObject) oliter.next();
|
PlunderObject current = (PlunderObject) oliter.next();
|
||||||
|
|
@ -29,7 +30,7 @@ public class PlunderObjectManager{
|
||||||
if(current.snakeCharmed){
|
if(current.snakeCharmed){
|
||||||
current.snakeCharmed = false;
|
current.snakeCharmed = false;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue