From 94c4256451181ec23b6408319653fb64f19bf6af Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 8 May 2020 17:23:39 +0200 Subject: [PATCH] Fix crash when standing on unknown node --- mods/PLAYER/mcl_playerplus/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index 99939d1df..234e22ab1 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -28,6 +28,9 @@ minetest.register_globalstep(function(dtime) if not node_stand or not node_stand_below or not node_head or not node_feet then return end + if not minetest.registered_nodes[node_stand] or not minetest.registered_node[node_stand_below] or not minetest.registered_nodes[node_head] or not minetest.registered_nodes[node_feet] then + return + end -- Cause buggy exhaustion for jumping