From 3c9b9fe08cba8d78ed7c85c47dbaf63a67d97754 Mon Sep 17 00:00:00 2001 From: anonymous Date: Mon, 2 Oct 2017 13:59:11 +0100 Subject: [PATCH] Fixed deprecated call. --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index e8b2428..9b7e281 100644 --- a/init.lua +++ b/init.lua @@ -17,7 +17,7 @@ minetest.register_tool("orbs_of_time:orb_day", { minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false}) minetest.set_timeofday(0.5) minetest.sound_play("orbs_birds", {pos=user:getpos(), loop=false}) - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode") then itemstack:add_wear(65535/8) end return itemstack @@ -36,7 +36,7 @@ minetest.register_tool("orbs_of_time:orb_night",{ minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false}) minetest.set_timeofday(0) minetest.sound_play("orbs_owl", {pos=user:getpos(), loop=false}) - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode") then itemstack:add_wear(65535/8) end return itemstack @@ -56,7 +56,7 @@ minetest.register_tool("orbs_of_time:orb_dawn", { minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false}) minetest.set_timeofday(0.2) minetest.sound_play("orbs_birds", {pos=user:getpos(), loop=false}) - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode") then itemstack:add_wear(65535/8) end return itemstack @@ -75,7 +75,7 @@ minetest.register_tool("orbs_of_time:orb_dusk",{ minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false}) minetest.set_timeofday(0.8) minetest.sound_play("orbs_owl", {pos=user:getpos(), loop=false}) - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode") then itemstack:add_wear(65535/8) end return itemstack @@ -161,4 +161,4 @@ if minetest.get_modpath("loot") then }, }) -end \ No newline at end of file +end