Sheep now accept any shears

This commit is contained in:
Wuzzy 2019-09-24 03:05:06 +02:00
parent 7124b516cc
commit 47f711a41c
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ mobs:register_mob(
-- Are we giving a haircut?
if itemname == "default:shears" then
if minetest.get_item_group(itemname, "shears") > 0 then
if self.gotten == false and self.child == false then
self.gotten = true -- shaved
local pos = self.object:get_pos()