1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2025-06-30 15:20:20 +02:00

Rewrite stairs code.

- Handle stairsplus stairs and MTG stairs in the same file.
 - Only create stairs using stairsplus or MTG stairs, not both.
 - Handle map switching from MTG stairs to stairsplus automatically.
 - If using stairsplus:
   - Move stairsplus nodes to proper namespace.
   - Alias stairsplus nodes that moved to a new namespace.
   - Alias duplicated ice and snowblock stairs and slabs to their new namespace.
   - Make ice_brick sawable too.
   - Unify stairsplus cut ice and default:ice texture brightness.
 - If using MTG stairs:
   - Move stairs and slabs to MTG stairs namespace.
   - Alias stairs and slabs that moved to the new namespace.
This commit is contained in:
Foz
2018-01-07 02:30:57 -05:00
committed by you
parent 0dcf9b5f0e
commit 898c7e313b
5 changed files with 99 additions and 654 deletions

View File

@ -66,6 +66,7 @@ dofile(srcpath.."snowball.lua")
-- To get Xmas tree saplings, the "christmas_content", true or false, in "util.lua" has to be determined first.
-- That means "nodes.lua", where the saplings are controlled, has to come after "util.lua". ~ LazyJ
dofile(srcpath.."nodes.lua")
dofile(srcpath.."stairs.lua")
dofile(srcpath.."mapgen.lua")
dofile(srcpath.."sled.lua")
dofile(srcpath.."falling_snow.lua")