master
root 2020-12-07 21:20:33 +01:00
parent d6f6a2cd4a
commit 05c4cda423
3 changed files with 3 additions and 1 deletions

View File

@ -356,6 +356,7 @@ function petz.set_initial_properties(self, staticdata, dtime_s)
end
--DELETE THIS BLOCK IN THE NEXT UPDATE -- FOR COMPATIBIITY PURPOSES FOR OLD CHICKENS ONLY>>>
if self.type == "chicken" and self.texture_no > 1 then
self.is_baby = mobkit.remember(self, "is_baby", true)
self.texture_no = mobkit.remember(self, "texture_no", 1)
petz.set_properties(self, {textures = {self.textures[1]}})
end

View File

@ -62,6 +62,7 @@ petz.on_rightclick = function(self, clicker)
petz.capture(self, clicker, true)
minetest.chat_send_player("singleplayer", S("Your").." "..S(pet_name).." "..S("has been captured")..".")
elseif self.breed and wielded_item_name == petz.settings[self.type.."_breed"] and not(self.is_baby) then
minetest.chat_send_all("test="..petz.settings[self.type.."_breed"])
petz.breed(self, clicker, wielded_item, wielded_item_name)
elseif (wielded_item_name == "petz:dreamcatcher") and (self.tamed == true) and (self.is_pet == true) and is_owner then
petz.put_dreamcatcher(self, clicker, wielded_item, wielded_item_name)

View File

@ -475,7 +475,7 @@ for i = 1, #petz.settings["petz_list"] do --load the settings
petz.settings[petz_type.."_spawn_herd"] = tonumber(user:get(petz_type.."_spawn_herd") or settings:get(petz_type.."_spawn_herd")) or 1
petz.settings[petz_type.."_seasonal"] = user:get(petz_type.."_seasonal") or settings:get(petz_type.."_seasonal") or ""
petz.settings[petz_type.."_follow"] = user:get(petz_type.."_follow") or settings:get(petz_type.."_follow") or nil
petz.settings[petz_type.."_breed"] = user:get(petz_type.."_breed") or settings:get(petz_type.."_breed") or ""
petz.settings[petz_type.."_breed"] = user:get(petz_type.."_breed") or settings:get(petz_type.."_breed") or nil
petz.settings[petz_type.."_predators"] = user:get(petz_type.."_predators") or settings:get(petz_type.."_predators") or ""
petz.settings[petz_type.."_preys"] = user:get(petz_type.."_preys") or settings:get(petz_type.."_preys") or ""
petz.settings[petz_type.."_colorized"] = user:get_bool(petz_type.."_colorized")