forked from mtcontrib/mobs_animal
getpos to get_pos
This commit is contained in:
@ -106,7 +106,7 @@ for _, col in ipairs(all_colours) do
|
||||
self.gotten = true -- shaved
|
||||
|
||||
local obj = minetest.add_item(
|
||||
self.object:getpos(),
|
||||
self.object:get_pos(),
|
||||
ItemStack( "wool:" .. col[1] .. " " .. math.random(1, 3) )
|
||||
)
|
||||
|
||||
@ -147,7 +147,7 @@ for _, col in ipairs(all_colours) do
|
||||
|
||||
if c[1] == colr then
|
||||
|
||||
local pos = self.object:getpos()
|
||||
local pos = self.object:get_pos()
|
||||
|
||||
self.object:remove()
|
||||
|
||||
|
Reference in New Issue
Block a user