9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2025-12-28 03:19:29 +00:00

Fixed stone bugs

This commit is contained in:
Auxilor
2021-11-20 11:38:49 +00:00
parent 6f9d66d4cc
commit ef581602c5

View File

@@ -55,19 +55,21 @@ class Reforge(
Display.display(stone)
CustomItem(
plugin.namespacedKeyFactory.create("stone_" + this.id),
{ test -> ReforgeUtils.getReforgeStone(test) == this },
stone
).register()
if (config.getBool("stone.enabled")) {
CustomItem(
plugin.namespacedKeyFactory.create("stone_" + this.id),
{ test -> ReforgeUtils.getReforgeStone(test) == this },
stone
).register()
if (config.getBool("stone.craftable") && config.getBool("stone.enabled")) {
Recipes.createAndRegisterRecipe(
plugin,
"stone_" + this.id,
stone,
config.getStrings("stone.recipe", false)
)
if (config.getBool("stone.craftable")) {
Recipes.createAndRegisterRecipe(
plugin,
"stone_" + this.id,
stone,
config.getStrings("stone.recipe", false)
)
}
}
}