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 <lonewolf04361@gmail.com>
This commit is contained in:
_Lucy 2021-06-24 22:49:14 +02:00 committed by GitHub
parent 0e3a5413ce
commit 3736223110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,6 +150,7 @@ local function isdiggable(name)
name:find("glass" ) or name:find("ice" ) or name:find("glass" ) or name:find("ice" ) or
name:find("snow" ) name:find("snow" )
) )
or name:find("stairs:")
end end
local function paxel_stop(pname, reason) local function paxel_stop(pname, reason)
@ -165,7 +166,7 @@ end
local function remove_pillar(pos, pname) local function remove_pillar(pos, pname)
local name = minetest.get_node(pos).name 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) local player = minetest.get_player_by_name(pname)
minetest.dig_node(pos) minetest.dig_node(pos)