mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-12-22 13:22:28 +01:00
Replace deprecated settings method (#9)
This commit is contained in:
parent
c8b83cd72d
commit
8a7ebcf6ca
@ -45,7 +45,7 @@ local hopper_on_place = function(itemstack, placer, pointed_thing, node_name)
|
|||||||
if success then
|
if success then
|
||||||
local meta = minetest.get_meta(pos2)
|
local meta = minetest.get_meta(pos2)
|
||||||
meta:set_string("placer", placer:get_player_name())
|
meta:set_string("placer", placer:get_player_name())
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.settings:get_bool("creative_mode") then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user