summaryrefslogtreecommitdiff
path: root/bunny.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bunny.lua')
-rw-r--r--bunny.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/bunny.lua b/bunny.lua
index f49cd23..93b8dcf 100644
--- a/bunny.lua
+++ b/bunny.lua
@@ -76,7 +76,7 @@ mobs:register_mob("mobs_animal:bunny", {
end,
on_spawn = function(self)
- local pos = self.object:getpos() ; pos.y = pos.y - 1
+ local pos = self.object:get_pos() ; pos.y = pos.y - 1
-- white snowy bunny
if minetest.find_node_near(pos, 1,