Fix #801
parent
08a8b155d7
commit
034174390d
|
@ -320,7 +320,7 @@ local function trace_explode(pos, strength, raydirs, radius, drop_chance, fire,
|
||||||
if do_drop or on_blast ~= nil then
|
if do_drop or on_blast ~= nil then
|
||||||
local npos = minetest.get_position_from_hash(hash)
|
local npos = minetest.get_position_from_hash(hash)
|
||||||
if on_blast ~= nil then
|
if on_blast ~= nil then
|
||||||
on_blast(npos, 1.0)
|
on_blast(npos, 1.0, do_drop)
|
||||||
remove = false
|
remove = false
|
||||||
else
|
else
|
||||||
local name = minetest.get_name_from_content_id(data[idx])
|
local name = minetest.get_name_from_content_id(data[idx])
|
||||||
|
|
|
@ -223,7 +223,7 @@ minetest.register_node("mcl_armor_stand:armor_stand", {
|
||||||
after_destruct = function(pos)
|
after_destruct = function(pos)
|
||||||
update_entity(pos)
|
update_entity(pos)
|
||||||
end,
|
end,
|
||||||
on_blast = function(pos)
|
on_blast = function(pos, _, do_drop)
|
||||||
local object = get_stand_object(pos)
|
local object = get_stand_object(pos)
|
||||||
if object then
|
if object then
|
||||||
object:remove()
|
object:remove()
|
||||||
|
@ -231,7 +231,10 @@ minetest.register_node("mcl_armor_stand:armor_stand", {
|
||||||
minetest.after(1, function(pos)
|
minetest.after(1, function(pos)
|
||||||
update_entity(pos)
|
update_entity(pos)
|
||||||
end, pos)
|
end, pos)
|
||||||
minetest.set_node(pos, {name = "air"})
|
minetest.remove_node(pos)
|
||||||
|
if do_drop then
|
||||||
|
minetest.add_item(pos, "mcl_armor_stand:armor_stand")
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
on_rotate = function(pos, node, user, mode)
|
on_rotate = function(pos, node, user, mode)
|
||||||
if mode == screwdriver.ROTATE_FACE then
|
if mode == screwdriver.ROTATE_FACE then
|
||||||
|
|
Loading…
Reference in New Issue