From 18c07cf7ae3d7ccf4f5328fc85be3635a54605b5 Mon Sep 17 00:00:00 2001
From: R-one <r1-c@live.fr>
Date: Sun, 24 Dec 2017 13:20:51 +0100
Subject: fix grounding on sharks beach

---
 mobs_sharks/init.lua | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/mobs_sharks/init.lua b/mobs_sharks/init.lua
index 9e3ade0..0e73dca 100644
--- a/mobs_sharks/init.lua
+++ b/mobs_sharks/init.lua
@@ -54,6 +54,8 @@ if mobs.mod and mobs.mod == "redo" then
 			makes_footstep_sound = false,
 			walk_velocity = 4,
 			run_velocity = 6,
+			jump = false,
+			stepheight = 0.1,
 			fly = true,
 			fly_in = "default:water_source",
 			fall_speed = 0,
@@ -63,7 +65,7 @@ if mobs.mod and mobs.mod == "redo" then
 			lava_damage = 10,
 			light_damage = 0,
 			animation = l_anims,
-			do_custom = function(self)
+			--[[do_custom = function(self)
 				if HELP_WITH_EXPERIMENT then
 					local p = self.object:getpos()
 					local a = self.object:getvelocity()
@@ -78,7 +80,7 @@ if mobs.mod and mobs.mod == "redo" then
 					end
 					self.object:setvelocity(a)
 				end
-			end
+			end]]
 		})
 		--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
 		mobs:spawn_specific("mobs_sharks:shark_lg", l_spawn_in, l_spawn_near, -1, 20, 30, l_spawn_chance, 1, -31000, 0)
@@ -103,6 +105,8 @@ if mobs.mod and mobs.mod == "redo" then
 			makes_footstep_sound = false,
 			walk_velocity = 2,
 			run_velocity = 4,
+			jump = false,
+			stepheight = 0.1,
 			fly = true,
 			fly_in = "default:water_source",
 			fall_speed = -1,
@@ -136,6 +140,8 @@ if mobs.mod and mobs.mod == "redo" then
 			makes_footstep_sound = false,
 			walk_velocity = 2,
 			run_velocity = 4,
+			jump = false,
+			stepheight = 0.1,
 			fly = true,
 			fly_in = "default:water_source",
 			fall_speed = -1,
-- 
cgit v1.2.3