Skip to content

Loading…

ChestRatioStorage fix for multiple levels in chest.yml #109

Merged
merged 3 commits into from

2 participants

@IngeniousGamer

Requires a higher ratio set in the chest.yml config - new default value: 10
-added meh name in VIP names >_>(shh)

IngeniousGamer added some commits
@IngeniousGamer IngeniousGamer Update ChestRatioStorage.java
Fixes chest ratio and levels - requires a higher ratio setting in config
2cbd895
@IngeniousGamer IngeniousGamer Update SurvivalGames.java ca7780c
@IngeniousGamer IngeniousGamer Update chest.yml
Additional fix with ratio level fix
419c417
@Double0negative Double0negative merged commit 77e2de7 into Double0negative:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 13, 2013
  1. @IngeniousGamer

    Update ChestRatioStorage.java

    IngeniousGamer committed
    Fixes chest ratio and levels - requires a higher ratio setting in config
  2. @IngeniousGamer

    Update SurvivalGames.java

    IngeniousGamer committed
  3. @IngeniousGamer

    Update chest.yml

    IngeniousGamer committed
    Additional fix with ratio level fix
View
4 src/main/java/org/mcsg/survivalgames/SurvivalGames.java
@@ -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+"");
}
-}
+}
View
6 src/main/java/org/mcsg/survivalgames/util/ChestRatioStorage.java
@@ -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;
}
-}
+}
View
2 src/main/resources/chest.yml
@@ -12,7 +12,7 @@
version: 0
chest:
- ratio: 2
+ ratio: 10
lvl1:
- 268,1
- 298,1
Something went wrong with that request. Please try again.