Nils Dagsson Moskopp 67ae203772 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-22 18:07:37 +00:00
..
2022-02-23 23:58:05 +01:00
2022-02-24 10:16:47 +01:00
2022-02-23 23:58:05 +01:00
2022-03-23 18:30:34 +00:00
2022-03-25 13:28:33 +01:00
2022-02-23 23:58:05 +01:00
2022-03-15 15:58:27 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-04-02 03:32:56 +02:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-03-18 23:08:50 +01:00
2022-02-23 23:58:05 +01:00
2022-02-25 00:08:26 +00:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-03-15 15:58:27 +01:00
2022-02-23 23:58:05 +01:00
2022-03-19 02:32:46 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00
2022-02-23 23:58:05 +01:00