mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Can't shear lambs
This commit is contained in:
parent
55beefa6c7
commit
97e550bb9f
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ mobs:register_mob("mobs_mc:sheep", {
|
||||||
if mobs:feed_tame(self, clicker, 1, true, true) then return end
|
if mobs:feed_tame(self, clicker, 1, true, true) then return end
|
||||||
if mobs:protect(self, clicker) then return end
|
if mobs:protect(self, clicker) then return end
|
||||||
|
|
||||||
if item:get_name() == mobs_mc.items.shears and not self.gotten then
|
if item:get_name() == mobs_mc.items.shears and not self.gotten and not self.child then
|
||||||
self.gotten = true
|
self.gotten = true
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
minetest.sound_play("shears", {pos = pos})
|
minetest.sound_play("shears", {pos = pos})
|
||||||
|
|
Loading…
Reference in a new issue