Fix minetest-mods/moreblocks#98
Caused by cf1b054a99, 6a996eb86a and minetest/minetest_game@2f46103ff8.
For some unknown reason `default:glass` and `obsidian:glass` have `paramtype2 = "glasslikeliquidlevel"`. After the refactor of `stairsplus/registrations.lua`, all of the source node's defs are passed along to `stairsplus:register_all()`. Prior to cf1b054a99 the paramtype2 setting was discarded.
* Refactor stairsplus registrations
- Reorganize and remove redundant code.
- Remove sunlight_propagates=true and default to paramtype="light".
This causes cut blocks to have a shadow but not completely block light.
- Fix several bugs (#90, #91, #92).
* Readd sunlight_propagates=true for compatibility.
* Make wool sawable
Based on my simple research https://github.com/minetest-mods/moreblocks/issues/71 enabling wool should not cause major slowdowns.
Code pasted from gloopblocks
* List wool as optional dependancy
* Added check for wool dependancy
* Make life easier for translators
* Tweak some nodes
- Add function for recently-added metal sounds, and make copper patina use this sound
- Add all the wood tiles to the wood group
- Make empty bookshelf usable as fuel for half the time of book and vessel shelves (for 15 seconds)
* Return the books when crafting enpty bookshelves
* Removed Junglwood fences -> Alias with default:fence_junglewood
* Removed Jungle stick -> Alias with default:stick
* Removed unnecessary redefinitions because all the overridden options are the same as in minetest_game.
The code
not type(fields.drop) == "table"
was always false because it compares a boolean with a string,
not (type(fields.drop) == "table")
is the intended logic.
For all glasslike drawtype nodes, the tiles contain up to 2
textures. The second texture is for "connected" glass, but that
likely is a transparent texture. If we use the `tiles` def without
modification, we will make all those slabs/slopes transparent on all
sides except the top.
To fix, we remove the tiles[2] from the tiledef in case the node is
a glasslike drawtype.
Adds a check to see if recycle stack wouldn't overflow the input stack. If so, then
the items are just put in the recycle slot and they can be taken out again.