From 3736223110c37d81460c9eec66d7b3270d6ca3c9 Mon Sep 17 00:00:00 2001 From: _Lucy <80708819+Lucyucy@users.noreply.github.com> Date: Thu, 24 Jun 2021 22:49:14 +0200 Subject: [PATCH] Make stairs diggable with paxel (#905) * Making stairs diggable with the paxel Adds cobble stairs and desert cobble stairs to local function "isdiggable" and "remove_pillar" * Update mods/ctf/ctf_classes/medic.lua Co-authored-by: LoneWolfHT --- mods/ctf/ctf_classes/medic.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ctf/ctf_classes/medic.lua b/mods/ctf/ctf_classes/medic.lua index de07c13..5bb2287 100644 --- a/mods/ctf/ctf_classes/medic.lua +++ b/mods/ctf/ctf_classes/medic.lua @@ -150,6 +150,7 @@ local function isdiggable(name) name:find("glass" ) or name:find("ice" ) or name:find("snow" ) ) + or name:find("stairs:") end local function paxel_stop(pname, reason) @@ -165,7 +166,7 @@ end local function remove_pillar(pos, pname) local name = minetest.get_node(pos).name - if name:find("default") and isdiggable(name) then + if name:find("default") or name:find("stairs") and isdiggable(name) then local player = minetest.get_player_by_name(pname) minetest.dig_node(pos)