Skip to content

Commit

Permalink
Update ChestRatioStorage.java
Browse files Browse the repository at this point in the history
Fixes chest ratio and levels - requires a higher ratio setting in config
  • Loading branch information
CiYouLater committed Dec 13, 2013
1 parent a8c65e8 commit 2cbd895
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public void setup(){
ArrayList<ItemStack> lvl = new ArrayList<ItemStack>();
List<String>list = conf.getStringList("chest.lvl"+clevel);

if(list != null){
if(!list.isEmpty()){
for(int b = 0; b<list.size();b++){
ItemStack i = ItemReader.read(list.get(b));
lvl.add(i);
}
lvlstore.put(clevel, lvl);
} else {
maxlevel = clevel;
maxlevel = clevel-1;
break;
}
}
Expand Down Expand Up @@ -77,4 +77,4 @@ public ArrayList<ItemStack> getItems(int level){
}
return items;
}
}
}

0 comments on commit 2cbd895

Please sign in to comment.