Tiny tweak
This commit is contained in:
parent
82344b7a0d
commit
2032a35798
1 changed files with 2 additions and 2 deletions
|
|
@ -378,7 +378,7 @@ function register_trapdoor(name, def)
|
||||||
if sound then
|
if sound then
|
||||||
minetest.sound_play(sound, {pos = pos, gain = 0.3, max_hear_distance = 10})
|
minetest.sound_play(sound, {pos = pos, gain = 0.3, max_hear_distance = 10})
|
||||||
end
|
end
|
||||||
minetest.set_node(pos, {name = newname, param1 = node.param1, param2 = node.param2})
|
minetest.swap_node(pos, {name = newname, param1 = node.param1, param2 = node.param2})
|
||||||
end
|
end
|
||||||
|
|
||||||
def.on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple
|
def.on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue