From 11b5684a90a7779986b5685d899a55a606922a0f Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sat, 24 Apr 2021 20:05:14 -0400 Subject: [PATCH] Remove wolf-dog shift click breeding, and implement better logic --- mods/ENTITIES/mobs_mc/wolf.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/wolf.lua b/mods/ENTITIES/mobs_mc/wolf.lua index 4cd76dd323..941cc42f12 100644 --- a/mods/ENTITIES/mobs_mc/wolf.lua +++ b/mods/ENTITIES/mobs_mc/wolf.lua @@ -154,17 +154,16 @@ dog.follow = "mcl_mobitems:beef" dog.on_rightclick = function(self, clicker) local item = clicker:get_wielded_item() - if self.owner and self.owner == clicker:get_player_name() and clicker:get_player_control().sneak then - --attempt to enter breed state - if mobs.enter_breed_state(self,clicker) then - return - end + --owner is broken for this + --attempt to enter breed state + if mobs.enter_breed_state(self,clicker) then + return + end - --make baby grow faster - if self.baby then - mobs.make_baby_grow_faster(self,clicker) - return - end + --make baby grow faster + if self.baby then + mobs.make_baby_grow_faster(self,clicker) + return end if is_food(item:get_name()) then