From 0db8d4b2639ece8f913079cb6e5499354fb1a0a9 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 9 Oct 2017 15:16:05 +0100 Subject: getpos to get_pos --- cow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cow.lua') diff --git a/cow.lua b/cow.lua index c9b9e1e..e7ba196 100644 --- a/cow.lua +++ b/cow.lua @@ -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 -- cgit v1.2.3