From 2423acb297a47a7d36eb3f4b10a3beafc6f57233 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 5 Sep 2019 00:17:52 +0200 Subject: [PATCH] Fix slimes not jumping at all --- mods/ENTITIES/mcl_mobs/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index c5cacd923..80d5745d5 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -787,10 +787,10 @@ local do_jump = function(self) x = pos.x + dir_x, y = pos.y + 1.5, z = pos.z + dir_z - }) + }, "air") -- we don't attempt to jump if there's a stack of blocks blocking - if nodTop ~= nil then + if minetest.registered_nodes[nodTop.name] == true then return false end