mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-09-09 14:20:25 +02:00
- Moved farming and screwdriver into MinetestForFun Game - Updated files (mostly `is_ground_content`) - Removed weird partial copy of jukebox in MinetestForFun Game
26 lines
954 B
Lua
Executable File
26 lines
954 B
Lua
Executable File
-- mods/default/legacy.lua
|
|
|
|
-- Horrible crap to support old code registering falling nodes
|
|
-- 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
|
|
|
|
function default.spawn_falling_node(p, nodename)
|
|
spawn_falling_node(p, nodename)
|
|
end
|
|
|
|
-- Liquids
|
|
WATER_ALPHA = minetest.registered_nodes["default:water_source"].alpha
|
|
WATER_VISC = minetest.registered_nodes["default:water_source"].liquid_viscosity
|
|
LAVA_VISC = minetest.registered_nodes["default:lava_source"].liquid_viscosity
|
|
LIGHT_MAX = default.LIGHT_MAX
|
|
|
|
-- Formspecs
|
|
default.gui_suvival_form = default.gui_survival_form
|