capturetheflag/mods/mtg/default/legacy.lua

26 lines
961 B
Lua
Raw Normal View History

2015-07-16 17:44:01 +00:00
-- mods/default/legacy.lua
2017-10-06 00:25:34 +00:00
-- Horrible stuff to support old code registering falling nodes
2015-07-16 17:44:01 +00:00
-- 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
2017-10-12 15:42:19 +00:00
-- minetest.registered_nodes[nodename].groups.falling_node = 1
2015-07-16 17:44:01 +00:00
end
end
function default.spawn_falling_node(p, nodename)
2017-10-12 15:42:19 +00:00
-- spawn_falling_node(p, nodename)
2015-07-16 17:44:01 +00:00
end
-- Liquids
WATER_ALPHA = minetest.registered_nodes["default:water_source"].alpha
WATER_VISC = minetest.registered_nodes["default:water_source"].liquid_viscosity
2017-10-06 00:25:34 +00:00
LAVA_VISC = minetest.registered_nodes["default:lava_source"].liquid_viscosity
2015-07-16 17:44:01 +00:00
LIGHT_MAX = default.LIGHT_MAX
-- Formspecs
default.gui_suvival_form = default.gui_survival_form