Update minetest.setting_getbool to minetest.settings:get_bool (#6)

This commit is contained in:
ksandr 2021-07-12 17:24:30 +03:00 committed by GitHub
parent ee6aacbb51
commit d4a450cd5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -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)