1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-30 05:40:24 +02:00

Fix typo in survival formspec & create legacy file

This commit is contained in:
Craig Davison
2014-12-24 23:13:15 +00:00
committed by BlockMen
parent 75ea7e3160
commit a9137e8c21
5 changed files with 35 additions and 29 deletions

View File

@ -83,25 +83,6 @@ function default.node_sound_glass_defaults(table)
return table
end
--
-- Legacy
--
function default.spawn_falling_node(p, nodename)
spawn_falling_node(p, nodename)
end
-- Horrible crap to support old code
-- Don't use this and never do what this does, it's completely wrong!
-- (More specifically, the client and the C++ code doesn't get the group)
function default.register_falling_node(nodename, texture)
minetest.log("error", debug.traceback())
minetest.log('error', "WARNING: default.register_falling_node is deprecated")
if minetest.registered_nodes[nodename] then
minetest.registered_nodes[nodename].groups.falling_node = 1
end
end
--
-- Lavacooling
--