diff options
Diffstat (limited to 'stairsplus')
-rw-r--r-- | stairsplus/init.lua | 5 | ||||
-rw-r--r-- | stairsplus/registrations.lua | 9 | ||||
-rw-r--r-- | stairsplus/slopes.lua | 2 |
3 files changed, 15 insertions, 1 deletions
diff --git a/stairsplus/init.lua b/stairsplus/init.lua index 5cd415c..880349a 100644 --- a/stairsplus/init.lua +++ b/stairsplus/init.lua @@ -91,3 +91,8 @@ dofile(modpath .. "/slopes.lua") dofile(modpath .. "/panels.lua") dofile(modpath .. "/microblocks.lua") dofile(modpath .. "/registrations.lua") + + + + + diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index 694fb68..413ecca 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -85,7 +85,9 @@ for _, name in pairs(default_nodes) do sounds = ndef.sounds, tiles = tiles, sunlight_propagates = true, - light_source = ndef.light_source + light_source = ndef.light_source, + use_texture_alpha = ndef.use_texture_alpha + }) end end @@ -126,3 +128,8 @@ if minetest.get_modpath("wool") then }) end end + + + + + diff --git a/stairsplus/slopes.lua b/stairsplus/slopes.lua index 7d18b3d..6d934f6 100644 --- a/stairsplus/slopes.lua +++ b/stairsplus/slopes.lua @@ -120,6 +120,7 @@ function register_slope(modname, subname, recipeitem, groups, images, descriptio drop = drop, light_source = light, sounds = default.node_sound_stone_defaults(), + use_texture_alpha = use_texture_alpha }) end @@ -249,6 +250,7 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields) def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.description = desc + def.use_texture_alpha = fields.use_texture_alpha def.groups = stairsplus:prepare_groups(fields.groups) if fields.drop and not (type(fields.drop) == "table") then def.drop = modname.. ":slope_" ..fields.drop..alternate |