Sulfur is attached_node

This commit is contained in:
Kotolegokot 2013-06-06 14:09:20 +06:00
parent debbec218f
commit e0a4e2b99f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 = {