projects
/
oweals
/
minetest_game.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace deprecated function calls
[oweals/minetest_game.git]
/
mods
/
bucket
/
init.lua
diff --git
a/mods/bucket/init.lua
b/mods/bucket/init.lua
index 9c1481ef2096ac450924f271b345cf9fd789d5f3..1d37cb427166f6887fd7e534aa0f8d969314b285 100644
(file)
--- a/
mods/bucket/init.lua
+++ b/
mods/bucket/init.lua
@@
-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