Fixed deprecated calls. Minor file cleanup. (#3)
This commit is contained in:
parent
aabecb3595
commit
548904328a
2
init.lua
2
init.lua
@ -123,7 +123,7 @@ minetest.register_entity("cake:cake_entity", {
|
||||
if throwable_cake then
|
||||
minetest.override_item("cake:cake", {
|
||||
on_use = function(itemstack, player, pointed_thing)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
end
|
||||
local playerpos = player:getpos()
|
||||
|
Loading…
x
Reference in New Issue
Block a user