From e5e49ed96517373e776cf3574e421fc7ba71fb0e Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Wed, 10 Mar 2021 13:28:21 +0100 Subject: [PATCH] Remove warnings from deprecated definitions and functions (#6) Co-authored-by: sys4 --- glass.lua | 18 +++++++++--------- mapgen.lua | 3 +-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/glass.lua b/glass.lua index b8dfce8..3f7471c 100644 --- a/glass.lua +++ b/glass.lua @@ -12,7 +12,7 @@ minetest.register_node("darkage:glass", { description = "Clean Medieval Glass", drawtype = "glasslike", tiles = {"darkage_glass.png"}, - use_texture_alpha=false, + use_texture_alpha = "clip", paramtype = "light", sunlight_propagates = true, groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1}, @@ -35,7 +35,7 @@ minetest.register_node("darkage:glass_round", { drawtype = "glasslike", tiles = { "darkage_glass_round.png" }, paramtype = "light", - use_texture_alpha = true, + use_texture_alpha = "clip", sunlight_propagates = true, sounds = default.node_sound_glass_defaults(), groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1}, @@ -57,7 +57,7 @@ minetest.register_node("darkage:glass_square", { drawtype = "glasslike", tiles = { "darkage_glass_square.png" }, paramtype = "light", - use_texture_alpha = true, + use_texture_alpha = "clip", sunlight_propagates = true, sounds = default.node_sound_glass_defaults(), groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1}, @@ -83,7 +83,7 @@ minetest.register_node("darkage:glow_glass", { description = "Medieval Glow Glass", drawtype = "glasslike", tiles = {"darkage_glass.png"}, - use_texture_alpha=true, + use_texture_alpha = "clip", paramtype = "light", sunlight_propagates = true, light_source = default.LIGHT_MAX-3, @@ -114,7 +114,7 @@ minetest.register_node("darkage:glow_glass_round", { description = "Medieval Round Glow Glass", drawtype = "glasslike", tiles = {"darkage_glass_round.png"}, - use_texture_alpha=true, + use_texture_alpha = "clip", paramtype = "light", sunlight_propagates = true, light_source = default.LIGHT_MAX-3, @@ -144,7 +144,7 @@ minetest.register_node("darkage:glow_glass_square", { description = "Medieval Square Glow Glass", drawtype = "glasslike", tiles = {"darkage_glass_square.png"}, - use_texture_alpha=true, + use_texture_alpha = "clip", paramtype = "light", sunlight_propagates = true, light_source = default.LIGHT_MAX-3, @@ -181,7 +181,7 @@ if minetest.get_modpath("unifieddyes") then description = "Milky Medieval Glass (Good for colorization)", drawtype = "glasslike", tiles = {"darkage_milk_glass.png"}, - use_texture_alpha=true, + use_texture_alpha = "blend", paramtype = "light", paramtype2 = "color", palette = "unifieddyes_palette_extended.png", @@ -219,7 +219,7 @@ if minetest.get_modpath("unifieddyes") then description = "Milky Medieval Round Glass (Good for colorization)", drawtype = "glasslike", tiles = {"darkage_milk_glass_round.png"}, - use_texture_alpha=true, + use_texture_alpha = "blend", paramtype = "light", paramtype2 = "color", palette = "unifieddyes_palette_extended.png", @@ -257,7 +257,7 @@ if minetest.get_modpath("unifieddyes") then description = "Milky Medieval Square Glass (Good for colorization)", drawtype = "glasslike", tiles = {"darkage_milk_glass_square.png"}, - use_texture_alpha=true, + use_texture_alpha = "blend", paramtype = "light", paramtype2 = "color", palette = "unifieddyes_palette_extended.png", diff --git a/mapgen.lua b/mapgen.lua index 8dba21d..06b5706 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -153,8 +153,7 @@ local function generate_claylike(data, varea, name, minp, maxp, seed, chance, mi end end -local mgparams = minetest.get_mapgen_params() -local seed = mgparams.seed +local seed = minetest.get_mapgen_setting("seed") -- Generate desert stone with iron in derset.