-
Notifications
You must be signed in to change notification settings - Fork 26
Replacements do not work in quick crafting #92
Comments
Please follow the issue template. It was supposedly fixed in #87 |
Ok, I understand now that the bug is maybe another mods fault. To reproduce: Then craft a "Hemp Fibre" per quick crafting, where the crafting recipe is given in https://notabug.org/TenPlus1/farming/src/master/crops/hemp.lua#L77 minetest.register_craft( {
output = "farming:hemp_fibre 8",
recipe = {
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
{"farming:hemp_leaf", "group:water_bucket", "farming:hemp_leaf"},
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
},
replacements = {{"group:water_bucket", "bucket:bucket_empty"}}
}) The problem is now that there is no empty bucket left. |
Can you try this? c9e02df |
To get the replacements from Quick Crafting safely, you have to declare your recipes after i3 has loaded in the mod initialization order. If your mod is named after "i" or have a dependency with i3, the replacements will work. The problem is that craft recipe getters do not return replacements and I'm forced to override |
I updated i3 from the database (your new commit is included there) and tried the quick crafting again as described before and it still does not work. |
Adding "i3" to the optional dependencies of farming solves the issue :-) |
When a recipe has a replacement defined, like for example the replacement of a bucket with water with an empty bucket (see for example the hemp fibre recipe in farming), then quick crafting does not give you this new item (e.g. the empty bucket) :-/
The text was updated successfully, but these errors were encountered: