Merge pull request 'make soul fire drop nothing when dug' (#2238) from fix_soul_fire_drop into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2238
This commit is contained in:
cora 2022-05-25 03:40:54 +00:00
commit efbf3d9750

View file

@ -153,6 +153,7 @@ minetest.register_node("mcl_blackstone:soul_fire", {
_mcl_node_death_message = minetest.registered_nodes["mcl_fire:fire"]._mcl_node_death_message, _mcl_node_death_message = minetest.registered_nodes["mcl_fire:fire"]._mcl_node_death_message,
groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1, destroys_items = 1, set_on_fire=8}, groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1, destroys_items = 1, set_on_fire=8},
floodable = true, floodable = true,
drop = "",
on_flood = function(pos, oldnode, newnode) on_flood = function(pos, oldnode, newnode)
if minetest.get_item_group(newnode.name, "water") > 0 then if minetest.get_item_group(newnode.name, "water") > 0 then
minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true) minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true)