From 3629f88dc05febadf3c21754973a026fa326003a Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 31 Oct 2022 01:15:37 +0100 Subject: [PATCH] Make strider usable --- mods/ENTITIES/mobs_mc/strider.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/strider.lua b/mods/ENTITIES/mobs_mc/strider.lua index 12568b8a5..65837d422 100644 --- a/mods/ENTITIES/mobs_mc/strider.lua +++ b/mods/ENTITIES/mobs_mc/strider.lua @@ -90,9 +90,12 @@ local strider = { -- if driver present allow control of horse if self.driver then - + local pos = self.object:get_pos() + local v = self.object:get_velocity() + self.object:set_velocity(vector.new(v.x,0,v.z)) mcl_mobs.drive(self, "walk", "stand", false, dtime) - + local l = minetest.find_node_near(pos,2,{"group:lava"}) + if l then self.object:set_pos(vector.new(pos.x,l.y+0.5,pos.z)) end return false -- skip rest of mob functions end