Commit 8576e4b0 authored by anonymous's avatar anonymous

Fixed deprecated calls.

parent 8955af2c
......@@ -7,21 +7,21 @@ dmobs = {}
dofile(minetest.get_modpath("dmobs").."/api.lua")
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
dmobs.dragons = minetest.setting_getbool("dmobs.dragons")
if dmobs.dragons == nil then
dmobs.dragons = minetest.settings:get_bool("dmobs.dragons")
if dmobs.dragons == nil then
dmobs.dragons = true
end
dmobs.regulars = minetest.setting_getbool("dmobs.regulars")
dmobs.regulars = minetest.settings:get_bool("dmobs.regulars")
if dmobs.regulars == nil then
dmobs.regulars = true
end
-- Enable fireballs/explosions
dmobs.destructive = minetest.setting_getbool("dmobs.destructive") or false
dmobs.destructive = minetest.settings:get_bool("dmobs.destructive") or false
-- Timer for the egg mechanics
dmobs.eggtimer = tonumber(minetest.setting_get("dmobs.eggtimer") ) or 100
dmobs.eggtimer = tonumber(minetest.settings:get("dmobs.eggtimer") ) or 100
......@@ -64,7 +64,7 @@ local mobslist = {
"badger",
"butterfly",
"elephant",
-- baddies
"pig_evil",
"fox",
......@@ -96,7 +96,7 @@ else
loadmob("great_dragon","/dragons/")
loadmob("water_dragon","/dragons/")
loadmob("wyvern","/dragons/")
dofile(minetest.get_modpath("dmobs").."/dragons/eggs.lua")
end
dofile(minetest.get_modpath("dmobs").."/arrows/dragonfire.lua")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment