fixes
parent
58dc26ee92
commit
a290712f38
|
@ -355,7 +355,7 @@ function petz.set_initial_properties(self, staticdata, dtime_s)
|
|||
end
|
||||
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
|
||||
if self.type == "chicken" 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]}})
|
||||
|
|
|
@ -15,7 +15,7 @@ minetest.register_on_player_hpchange(function(player, hp_change)
|
|||
local attached_to = player:get_attach()
|
||||
if attached_to then
|
||||
local entity = attached_to:get_luaentity()
|
||||
if entity.is_mountable then
|
||||
if entity and entity.is_mountable then
|
||||
local hp = player:get_hp()
|
||||
if hp_change < 0 then
|
||||
local new_hp = hp + hp_change
|
||||
|
|
Loading…
Reference in New Issue