From e0a4e2b99fa509a26f070a986d978c27e1838601 Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Thu, 6 Jun 2013 14:09:20 +0600 Subject: [PATCH] Sulfur is attached_node --- mods/core/falling.lua | 2 +- mods/ores/registration.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/core/falling.lua b/mods/core/falling.lua index 6fe5579..622f22f 100644 --- a/mods/core/falling.lua +++ b/mods/core/falling.lua @@ -138,7 +138,7 @@ realtest.register_on_updatenode(function(pos, node) end if not check_attached_node(pos, node) then minetest.env:remove_node(pos) - minetest.handle_node_drops(pos, {node.name}) + minetest.handle_node_drops(pos, minetest.get_node_drops(node.name, nil)) nodeupdate(pos) end end diff --git a/mods/ores/registration.lua b/mods/ores/registration.lua index 4a8ad7b..15cc379 100644 --- a/mods/ores/registration.lua +++ b/mods/ores/registration.lua @@ -187,7 +187,7 @@ minetest.register_node("ores:sulfur", { selection_box = { type = "wallmounted", }, - groups = {cracky=3,drop_on_dig=1,dig_immediate=2}, + groups = {cracky=3,drop_on_dig=1,dig_immediate=2,attached_node=1}, drop = { max_items = 1, items = {