mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-20 12:09:59 +00:00
Added option to split creative/survival baubles
This commit is contained in:
1 parent
a7eddcb792
commit
4b3cf82eac
1 file changed
+9
-4
@@ -12,7 +12,10 @@ public class Config {
|
||||
|
||||
public static Configuration config;
|
||||
public static Item itemRing;
|
||||
|
||||
|
||||
// config properties
|
||||
private static boolean splitSurvivalCreative = false;
|
||||
|
||||
public static void initialize(File file)
|
||||
{
|
||||
config = new Configuration(file);
|
||||
@@ -21,6 +24,8 @@ public class Config {
|
||||
itemRing =(new ItemRing()).setUnlocalizedName("Ring");
|
||||
GameRegistry.registerItem(itemRing, "Ring", Baubles.MODID);
|
||||
|
||||
splitSurvivalCreative = config.getBoolean("splitSurvivalCreative", "server", splitSurvivalCreative, "Split Baubles inventory for survival and creative game modes.");
|
||||
|
||||
//save it
|
||||
config.save();
|
||||
}
|
||||
@@ -39,7 +44,7 @@ public class Config {
|
||||
// Character.valueOf('P'), new ItemStack(Items.potionitem,1,8226)});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static boolean isSplitSurvivalCreative() {
|
||||
return splitSurvivalCreative;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user