From 71e592ed4060263b15b46acd5f9c5545932395dd Mon Sep 17 00:00:00 2001 From: Och Noe Date: Sat, 19 Jan 2019 13:11:13 +0100 Subject: stained glass now cutable, grval-slopes repaired --- stairsplus/init.lua | 5 +++++ stairsplus/registrations.lua | 9 ++++++++- stairsplus/slopes.lua | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'stairsplus') 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 -- cgit v1.2.3