Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #109 from Gameace/master

ChestRatioStorage fix for multiple levels in chest.yml
  • Loading branch information...
commit 77e2de720a19e7433f690ce64f8cd7a6389e0420 2 parents a8c65e8 + 419c417
Drew authored
4 src/main/java/org/mcsg/survivalgames/SurvivalGames.java
View
@@ -36,7 +36,7 @@
public static List < String > auth = Arrays.asList(new String[] {
"Double0negative", "iMalo", "Medic0987", "alex_markey", "skitscape", "AntVenom", "YoshiGenius", "pimpinpsp", "WinryR", "Jazed2011",
"KiwiPantz", "blackracoon", "CuppingCakes", "4rr0ws", "Fawdz", "Timothy13", "rich91", "ModernPrestige", "Snowpool", "egoshk",
- "nickm140", "chaseoes", "Oceangrass", "GrailMore", "iAngelic", "Lexonia", "ChaskyT", "Anon232"
+ "nickm140", "chaseoes", "Oceangrass", "GrailMore", "iAngelic", "Lexonia", "ChaskyT", "Anon232", "IngeniousGamer" //:) -Bryce
});
SurvivalGames p = this;
@@ -168,4 +168,4 @@ public static void debug(int a) {
if(SettingsManager.getInstance().getConfig().getBoolean("debug", false))
debug(a+"");
}
-}
+}
6 src/main/java/org/mcsg/survivalgames/util/ChestRatioStorage.java
View
@@ -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;
}
}
@@ -77,4 +77,4 @@ public int getLevel(int base){
}
return items;
}
-}
+}
2  src/main/resources/chest.yml
View
@@ -12,7 +12,7 @@
version: 0
chest:
- ratio: 2
+ ratio: 10
lvl1:
- 268,1
- 298,1
Please sign in to comment.
Something went wrong with that request. Please try again.