Removing everything from the first underscore blows up when the mod name
has an underscore itself. Solve by extracting the category as the part
of the name that begins after the colon and ends at the first
underscore. As a bonus, this should make it easier to place nodes in the
same category even if they are from different mods.
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.
A regression caused the description of slabs to revert to the source block's description. This commit fixes the regression and adds descriptions which were missing for the recently added slabs (two_sides, three_sides, and three_sides_u).
Closes minetest-mods/moreblocks#96
Only make aliases automatically for stairs and slabs from MTG stairs mod. Let other mods worry about aliasing themselves. Fixes minetest-mods/moreblocks#45
* 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
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.