1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2025-07-01 07:30:40 +02:00

various cleanups

This commit is contained in:
BuckarooBanzay
2024-09-26 19:48:32 +02:00
parent 08c83f52ce
commit fbd56e67c9
6 changed files with 10 additions and 13 deletions

View File

@ -120,7 +120,7 @@ for _, current_door in ipairs(doors) do
return itemstack;
end
local function afterdestruct(pos, oldnode)
local function afterdestruct(pos)
minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name="air"})
end
@ -173,12 +173,12 @@ for _, current_door in ipairs(doors) do
timer:start(3)
end
local function afterplace(pos, placer, itemstack, pointed_thing)
local function afterplace(pos)
local node = minetest.get_node(pos)
minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name=opened_top,param2=node.param2})
end
local function ontimer(pos, elapsed)
local function ontimer(pos)
-- play sound
minetest.sound_play(sound,{
max_hear_distance = 16,
@ -218,7 +218,7 @@ for _, current_door in ipairs(doors) do
},
}
local function nodig(pos, digger)
local function nodig()
return false
end