Update minetest.setting_getbool to minetest.settings:get_bool (#6)
This commit is contained in:
parent
ee6aacbb51
commit
d4a450cd5b
5 changed files with 8 additions and 8 deletions
|
@ -22,7 +22,7 @@ local function throw_hook(itemstack, user, vel)
|
|||
local dir = user:get_look_dir()
|
||||
local yaw = user:get_look_horizontal()
|
||||
if pos and dir and yaw then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
local before = itemstack:get_wear()
|
||||
itemstack:add_wear(65535 / 100)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue