forked from mtcontrib/darkage
Remove warnings from deprecated definitions and functions (#6)
Co-authored-by: sys4 <bricassa@sys4.fr>
This commit is contained in:
parent
befafde095
commit
e5e49ed965
18
glass.lua
18
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",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user