Add newer CoalGov update
This commit is contained in:
@@ -33,6 +33,9 @@ public final class SuperFurnaceService {
|
||||
|
||||
public void registerRecipe() {
|
||||
Bukkit.removeRecipe(recipeKey);
|
||||
if (!plugin.getConfig().getBoolean("super_furnace.recipe_enabled", false)) {
|
||||
return;
|
||||
}
|
||||
ShapedRecipe recipe = new ShapedRecipe(recipeKey, item());
|
||||
recipe.shape("SSS", "SFS", "SSS");
|
||||
recipe.setIngredient('S', Material.STONE);
|
||||
@@ -54,6 +57,14 @@ public final class SuperFurnaceService {
|
||||
return item;
|
||||
}
|
||||
|
||||
public boolean syntheticDiamondsEnabled() {
|
||||
return plugin.getConfig().getBoolean("synthetic_diamonds.enabled", true);
|
||||
}
|
||||
|
||||
public int syntheticDiamondCoalInput() {
|
||||
return Math.max(2, plugin.getConfig().getInt("synthetic_diamonds.coal_input", 40));
|
||||
}
|
||||
|
||||
public boolean isItem(ItemStack item) {
|
||||
if (item == null || item.getType() != Material.FURNACE || !item.hasItemMeta()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user