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:
parent
0e3a5413ce
commit
3736223110
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue