summaryrefslogtreecommitdiff
path: root/sheep.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-10-09 15:16:05 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-10-09 15:16:05 +0100
commit0db8d4b2639ece8f913079cb6e5499354fb1a0a9 (patch)
tree88aa769021c0d52612b611f07e430ffee3edc989 /sheep.lua
parent3b72ac1357dce4ce7bc7f05e3708c5c161abe0f9 (diff)
getpos to get_pos
Diffstat (limited to 'sheep.lua')
-rw-r--r--sheep.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/sheep.lua b/sheep.lua
index 1d8e8c0..74300f8 100644
--- a/sheep.lua
+++ b/sheep.lua
@@ -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()