1
0
дзеркало https://github.com/pyrollo/display_modpack.git синхронізовано 2026-01-01 10:05:35 +01:00

destroy sign entities if sign node is exploded

Цей коміт міститься в:
flux
2022-10-26 10:32:25 -07:00
джерело 4d483563f6
коміт 41f2eaaabb
4 змінених файлів з 18 додано та 0 видалено

Переглянути файл

@@ -289,6 +289,16 @@ function display_api.on_destruct(pos)
end
end
function display_api.on_blast(pos, intensity)
if not minetest.is_protected(pos, "tnt:blast") then
local node = minetest.get_node(pos)
local drops = minetest.get_node_drops(node, "tnt:blast")
minetest.remove_node(pos)
display_api.on_destruct(pos)
return drops
end
end
-- On_rotate (screwdriver) callback for display_api items. Prevents invalid
-- rotations and reorients entities.
function display_api.on_rotate(pos, node, user, _, new_param2)