Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typo in survival formspec & create legacy file
- Loading branch information
Showing
5 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters