Can't shear lambs
This commit is contained in:
parent
55beefa6c7
commit
97e550bb9f
|
@ -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 New Issue
Block a user