mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-12-22 05:12:29 +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
|
||||
local meta = minetest.get_meta(pos2)
|
||||
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()
|
||||
end
|
||||
end
|
||||
@ -224,4 +224,4 @@ minetest.register_node("hopper:hopper_side", {
|
||||
minetest.log("action", S("@1 moves stuff from hopper at @2",
|
||||
player:get_player_name(), minetest.pos_to_string(pos)))
|
||||
end,
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user