Fixed deprecated calls. Minor file cleanup. (#3)

This commit is contained in:
EdwardThorsten 2017-10-08 15:32:07 +01:00 committed by MrIbby
parent aabecb3595
commit 548904328a

View File

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