Skip to content

Commit

Permalink
Fix errors with Minetest 5.3.0-dev
Browse files Browse the repository at this point in the history
Fixes #154
  • Loading branch information
Amaz1 committed May 25, 2020
1 parent fac6382 commit bc5927e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mods/default/mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ minetest.register_alias("mapgen_stair_sandstonebrick", "stairs:stair_cobble")
-- Ore generation
--

local wl = minetest.get_mapgen_setting("water_level")
local wl = tonumber(minetest.get_mapgen_setting("water_level")) or 1

minetest.register_ore({
ore_type = "scatter",
Expand Down
2 changes: 1 addition & 1 deletion mods/lottmapgen/schematics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ lottmapgen.fill_bellow = function(fill)
local replace_node = {}
replace_node[minetest.get_content_id("lottother:dirt")]=minetest.get_content_id("default:dirt")
replace_node[minetest.get_content_id("lottother:snow")]=minetest.get_content_id("default:snowblock")
replace_node[minetest.get_content_id("lottother:mordor_stone")]=minetest.get_content_id("default:mordor_stone")
replace_node[minetest.get_content_id("lottother:mordor_stone")]=minetest.get_content_id("lottmapgen:mordor_stone")

local c_air = minetest.get_content_id("air")
local c_ignore = minetest.get_content_id("ignore")
Expand Down
2 changes: 1 addition & 1 deletion mods/lottores/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ minetest.register_node("lottores:mineral_salt", {
}
}
},
sounds = default.node_sound_dirt_defaults,
sounds = default.node_sound_dirt_defaults(),
})

-- Craft Items
Expand Down
2 changes: 0 additions & 2 deletions mods/lottores/ithildin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ minetest.register_node("lottores:ithildin_0", {
minetest.register_node("lottores:ithildin_1", {
description = "Ithildin",
tiles = {"ithildin_1.png"},
inventory_image = {"ithildin_1.png"},
wield_image = {"ithildin_1.png"},
paramtype = "light",
drawtype = 'glasslike',
walkable = false,
Expand Down
4 changes: 0 additions & 4 deletions mods/lottpotion/potionbrewing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ minetest.register_node("lottpotion:potion_brewer", {
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"lottpotion_potion_brewer.png"},
inventory_image = {"lottpotion_potion_brewer.png"},
wield_image = {"lottpotion_potion_brewer.png"},
paramtype = "light",
sounds = default.node_sound_stone_defaults(),
selection_box = {
Expand All @@ -234,8 +232,6 @@ minetest.register_node("lottpotion:potion_brewer_active", {
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"lottpotion_potion_brewer_active.png"},
inventory_image = {"lottpotion_potion_brewer.png"},
wield_image = {"lottpotion_potion_brewer.png"},
paramtype = "light",
light_source = 8,
selection_box = {
Expand Down
2 changes: 0 additions & 2 deletions mods/mobs/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2519,7 +2519,6 @@ end
local c_air = minetest.get_content_id("air")
local c_ignore = minetest.get_content_id("ignore")
local c_obsidian = minetest.get_content_id("default:obsidian")
local c_brick = minetest.get_content_id("default:obsidianbrick")
local c_chest = minetest.get_content_id("default:chest_locked")

-- explosion (cannot break protected or unbreakable nodes)
Expand Down Expand Up @@ -2568,7 +2567,6 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
and data[vi] ~= c_air
and data[vi] ~= c_ignore
and data[vi] ~= c_obsidian
and data[vi] ~= c_brick
and data[vi] ~= c_chest then

local n = node_ok(p).name
Expand Down

0 comments on commit bc5927e

Please sign in to comment.