disable_jump needs solid block to work

This commit is contained in:
Wuzzy 2024-11-27 21:16:34 +01:00
parent cba746e669
commit 28bcc8b73b

View File

@ -661,7 +661,11 @@ doc.add_category("nodes", {
---- Movement ---- Movement
if not forbidden_core_factoids.node_movement then if not forbidden_core_factoids.node_movement then
if data.def.groups.disable_jump == 1 then if data.def.groups.disable_jump == 1 then
if data.def.walkable == true then
datastring = datastring .. S("You can not jump while standing on this block.").."\n" datastring = datastring .. S("You can not jump while standing on this block.").."\n"
elseif not data.def.climable then
datastring = datastring .. S("You can not jump while inside this block.").."\n"
end
end end
if data.def.climbable == true then if data.def.climbable == true then
if data.def.groups.disable_jump == 1 and data.def.groups.disable_descend == 1 then if data.def.groups.disable_jump == 1 and data.def.groups.disable_descend == 1 then