Replace deprecated function calls

This commit is contained in:
SmallJoker
2018-07-01 21:44:03 +02:00
committed by Paramat
parent 0df2753a68
commit 255031fc91
12 changed files with 51 additions and 51 deletions

View File

@ -148,7 +148,7 @@ minetest.register_craftitem("bucket:bucket_empty", {
if inv:room_for_item("main", {name=liquiddef.itemname}) then
inv:add_item("main", liquiddef.itemname)
else
local pos = user:getpos()
local pos = user:get_pos()
pos.y = math.floor(pos.y + 0.5)
minetest.add_item(pos, liquiddef.itemname)
end