VoxeLibre/mods
kabou 8acddab74f Bonemealing mechanics bugfix.
When applying bonemeal to eg. farm crops, these have a chance to grow in
response to the application of bone meal. When a node can be bonemealed, the
applied bone meal item should always be spent after using it, regardless of
the results.  Currently this does not work correctly, if the result of
bonemealing has no effect on the node, the used bone meal item is not spent.

This commit fixes the behavior of the bone meal item to always be taken when
used on a node that defines a `_mcl_on_bonemealing()` callback.

The nodes that implement the callback imay use the handler's return value
only to signal if the bonemealing was succesful, not to signal if it was at
all possible.  For this reason, some nodes need to be made more strictly
conforming to the API.

* Always take the used bone meal item (if user is not in creative mode),
  regardless of whether the bonemealed node's handler returned `true`.
* Make dispensers spawn particles after succesful bonemealing.
* Trivial comment fix.
* Ripe cocoa pod cannot be bonemealed.
* Update API.md to describe the stricter API semantics.
2024-11-09 20:24:02 -06:00
..
CORE Address review comments 2024-09-16 13:32:06 +02:00
ENTITIES Improve head swivel code (#4622) 2024-11-10 02:41:55 +01:00
ENVIRONMENT Make fog_tint_type = "default" when weather is present to match behavior at 0.87.2 2024-10-09 01:05:20 +02:00
HELP Add crash guards against unknown items (#4623) 2024-08-31 23:41:06 +02:00
HUD Fix missing dependencies for random_mod_load_order 2024-09-15 22:25:44 +02:00
ITEMS Bonemealing mechanics bugfix. 2024-11-09 20:24:02 -06:00
MAPGEN Fix structure spawns under water + peaceful spawns (#4607) 2024-09-15 23:15:30 +02:00
MISC Remove unused code in mcl_privs 2024-11-10 01:34:50 +01:00
PLAYER Use soul_block group for soul speed bonus 2024-09-18 10:06:03 +02:00