Mineclonia/mods
Nils Dagsson Moskopp 7d2ef66175
Trigger node callbacks when pumpkin is sheared
The code for shearing a pumpkin used minetest.swap_node() to replace a
faceless pumpkin with a carved pumpkin. This did not trigger the node
callbacks of the carved pumpkin, which meant that shearing a pumpkin
would not check for the snow golem or iron golem spawn conditions.

This patch replaces minetest.swap_node() in the code for shearing a
pumpkin with minetest.set_node(), which does trigger the callbacks;
therefore snow and iron golems can now spawn as a pumpkin is carved.
2022-04-14 18:52:31 +02:00
..
CORE Fix typo in mcl_colors API documentation 2021-11-18 19:23:57 +01:00
ENTITIES Drop carved pumpkin when shearing snow golem 2022-04-14 00:23:01 +02:00
ENVIRONMENT Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00
HELP Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00
HUD Increase temporary message display duration to 10s 2022-02-12 17:25:09 +01:00
ITEMS Trigger node callbacks when pumpkin is sheared 2022-04-14 18:52:31 +02:00
MAPGEN Use uncarved pumpkin instead of carved in mapgen 2022-04-14 00:22:58 +02:00
MISC Do not crash if minetest.find_nodes_in_area() lies 2021-12-20 21:38:24 +01:00
PLAYER Fix player bone positions and properties setting 2021-12-09 04:53:45 +01:00