Make falling anvils crush some nodes
This commit is contained in:
parent
c6016c2053
commit
f9a2607200
3 changed files with 3 additions and 2 deletions
|
@ -92,7 +92,7 @@ minetest.register_entity(":__builtin:falling_node", {
|
|||
if n2.name == "mcl_portals:portal_end" then
|
||||
-- TODO: Teleport falling node.
|
||||
|
||||
elseif nd and nd.buildable_to == true then
|
||||
elseif (nd and nd.buildable_to == true) or minetest.get_item_group(self.node.name, "crush_after_fall") ~= 0 then
|
||||
-- Replace destination node if it's buildable to
|
||||
minetest.remove_node(np)
|
||||
-- Run script hook
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue