From ebec1c1559deae3f2f429dacf3f654b1e9f636e6 Mon Sep 17 00:00:00 2001 From: BlockMen Date: Fri, 14 Mar 2014 10:01:32 +0100 Subject: [PATCH] Fix crash now --- sheep.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/sheep.lua b/sheep.lua index 201f69b..c328120 100644 --- a/sheep.lua +++ b/sheep.lua @@ -235,6 +235,7 @@ SHEEP_DEF.on_step = function(self, dtime) -- play random sound local num = tonumber(self.lifetime/2) or 35 + if num < 6 then num = 6 end if self.sound_timer > self.timer + math.random(5, num) then minetest.sound_play(s_sound_normal, {pos = current_pos, max_hear_distance = 10, gain = 0.7}) self.sound_timer = 0