mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Added Config Option to disable crafting Lens Of Detonation, because it's pretty deathly and griefy
This commit is contained in:
parent
37a08aeab7
commit
025de27b42
3 changed files with 14 additions and 4 deletions
|
@ -111,7 +111,9 @@ public class PageReconstructor extends BookletPage{
|
||||||
if(this.recipes != null){
|
if(this.recipes != null){
|
||||||
ItemStack[] stacks = new ItemStack[this.recipes.length];
|
ItemStack[] stacks = new ItemStack[this.recipes.length];
|
||||||
for(int i = 0; i < this.recipes.length; i++){
|
for(int i = 0; i < this.recipes.length; i++){
|
||||||
stacks[i] = this.recipes[i].getFirstOutput();
|
if(this.recipes[i] != null){
|
||||||
|
stacks[i] = this.recipes[i].getFirstOutput();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return stacks;
|
return stacks;
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,6 +134,7 @@ public enum ConfigCrafting{
|
||||||
HORSE_ARMORS("Horse Armor -> Raw Materials (Crusher)", ConfigCategories.OTHER),
|
HORSE_ARMORS("Horse Armor -> Raw Materials (Crusher)", ConfigCategories.OTHER),
|
||||||
|
|
||||||
RECONSTRUCTOR_MISC("Misc. Recipes like Soul Sand (Reconstructor)", ConfigCategories.OTHER),
|
RECONSTRUCTOR_MISC("Misc. Recipes like Soul Sand (Reconstructor)", ConfigCategories.OTHER),
|
||||||
|
RECONSTRUCTOR_EXPLOSION_LENS("Lens of Detonation (Reconstructor)", ConfigCategories.OTHER),
|
||||||
|
|
||||||
TELE_STAFF("Tele Staff", ConfigCategories.ITEMS_CRAFTING),
|
TELE_STAFF("Tele Staff", ConfigCategories.ITEMS_CRAFTING),
|
||||||
CASING("Casing", ConfigCategories.BLOCKS_CRAFTING),
|
CASING("Casing", ConfigCategories.BLOCKS_CRAFTING),
|
||||||
|
|
|
@ -67,10 +67,17 @@ public class ReconstructorRecipeHandler{
|
||||||
//Lenses
|
//Lenses
|
||||||
addRecipe("itemLens", "itemColorLens", 5000);
|
addRecipe("itemLens", "itemColorLens", 5000);
|
||||||
recipeColorLens = Util.GetRecipes.lastReconstructorRecipe();
|
recipeColorLens = Util.GetRecipes.lastReconstructorRecipe();
|
||||||
addRecipe("itemColorLens", "itemExplosionLens", 5000);
|
|
||||||
recipeExplosionLens = Util.GetRecipes.lastReconstructorRecipe();
|
if(ConfigCrafting.RECONSTRUCTOR_EXPLOSION_LENS.isEnabled()){
|
||||||
addRecipe("itemExplosionLens", "itemDamageLens", 5000);
|
addRecipe("itemColorLens", "itemExplosionLens", 5000);
|
||||||
|
recipeExplosionLens = Util.GetRecipes.lastReconstructorRecipe();
|
||||||
|
addRecipe("itemExplosionLens", "itemDamageLens", 5000);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
addRecipe("itemColorLens", "itemDamageLens", 5000);
|
||||||
|
}
|
||||||
recipeDamageLens = Util.GetRecipes.lastReconstructorRecipe();
|
recipeDamageLens = Util.GetRecipes.lastReconstructorRecipe();
|
||||||
|
|
||||||
addRecipe("itemDamageLens", "itemLens", 5000);
|
addRecipe("itemDamageLens", "itemLens", 5000);
|
||||||
|
|
||||||
//Misc
|
//Misc
|
||||||
|
|
Loading…
Reference in a new issue