Argument mismatch in add_large_plant() in mcl_flowers #2155

Closed
opened 2022-04-30 19:06:07 +02:00 by kabou · 0 comments
Contributor

While implementing a bonemealing api, I came across an inconsistency in the definition of add_large_plant() and its callers in mcl_flowers.

Perusing git blame lead to the following commit that added one argument to the function and two to the callers.

As a result, fortune enchantment has never worked on "mcl_flowers:double_grass" and "mcl_flowers:double_fern" since it was added erroneously.

To the defense of the author of the ill-fated commit, add_large_plant() interface suffers from a severe lack of clarity, inviting mistakes such as these.

While implementing a bonemealing api, I came across an inconsistency in the definition of `add_large_plant()` and its callers in mcl_flowers. Perusing `git blame` lead to the [following commit](https://git.minetest.land/MineClone2/MineClone2/commit/86b2cd70f907dccb161bbdbb99e1770647ba2a76) that added _one_ argument to the function and _two_ to the callers. As a result, fortune enchantment has never worked on `"mcl_flowers:double_grass"` and `"mcl_flowers:double_fern"` since it was added erroneously. To the defense of the author of the ill-fated commit, `add_large_plant()` interface suffers from a severe lack of clarity, inviting mistakes such as these.
cora closed this issue 2022-05-01 12:32:50 +02:00
cora added the
mcla
mcl5
labels 2022-05-01 12:44:29 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#2155
No description provided.