1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2025-07-27 12:30:19 +02:00

getpos to get_pos

This commit is contained in:
TenPlus1
2017-10-09 15:16:05 +01:00
parent 3b72ac1357
commit 0db8d4b263
5 changed files with 7 additions and 7 deletions

View File

@ -87,7 +87,7 @@ mobs:register_mob("mobs_animal:cow", {
if inv:room_for_item("main", {name = "mobs:bucket_milk"}) then
clicker:get_inventory():add_item("main", "mobs:bucket_milk")
else
local pos = self.object:getpos()
local pos = self.object:get_pos()
pos.y = pos.y + 0.5
minetest.add_item(pos, {name = "mobs:bucket_milk"})
end