mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-03-11 06:07:44 +01:00
Co-authored-by: Yoric <d.o.teller+github@gmail.com> Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4865 Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land> Co-authored-by: Yoric <7vv00bbo8@mozmail.com> Co-committed-by: Yoric <7vv00bbo8@mozmail.com>
This commit is contained in:
parent
b9945d027a
commit
a40bbf7984
1 changed files with 0 additions and 11 deletions
|
@ -12,16 +12,6 @@ local pp_box_on = {
|
|||
fixed = { -7/16, -8/16, -7/16, 7/16, -7.5/16, 7/16 },
|
||||
}
|
||||
|
||||
local function pp_on_rightclick(pos, node)
|
||||
local basename = minetest.registered_nodes[node.name].pressureplate_basename
|
||||
if node.name == basename .. "_off" then
|
||||
minetest.set_node(pos, { name = basename .. "_on" })
|
||||
mesecon.receptor_on(pos, mesecon.rules.pplate)
|
||||
else
|
||||
minetest.get_meta(pos):set_string("deact_time", "")
|
||||
end
|
||||
end
|
||||
|
||||
local function pp_on_timer(pos, elapsed)
|
||||
local node = minetest.get_node(pos)
|
||||
local basename = minetest.registered_nodes[node.name].pressureplate_basename
|
||||
|
@ -178,7 +168,6 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te
|
|||
walkable = false,
|
||||
description = description,
|
||||
on_timer = pp_on_timer,
|
||||
on_rightclick = pp_on_rightclick,
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue