9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2026-01-04 15:41:40 +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) Display.display(stone)
CustomItem( if (config.getBool("stone.enabled")) {
plugin.namespacedKeyFactory.create("stone_" + this.id), CustomItem(
{ test -> ReforgeUtils.getReforgeStone(test) == this }, plugin.namespacedKeyFactory.create("stone_" + this.id),
stone { test -> ReforgeUtils.getReforgeStone(test) == this },
).register() stone
).register()
if (config.getBool("stone.craftable") && config.getBool("stone.enabled")) { if (config.getBool("stone.craftable")) {
Recipes.createAndRegisterRecipe( Recipes.createAndRegisterRecipe(
plugin, plugin,
"stone_" + this.id, "stone_" + this.id,
stone, stone,
config.getStrings("stone.recipe", false) config.getStrings("stone.recipe", false)
) )
}
} }
} }