fixed a minor bug with plunder

This commit is contained in:
Ceikry 2020-03-20 22:09:26 -05:00
parent e386724f94
commit 754257eae0

View file

@ -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;
} }