mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2025-11-17 07:45:29 +01:00
prevent invalid rotations and add on_rotate callbacks
This commit is contained in:
@@ -71,7 +71,7 @@ mesecon.register_node("moremesecons_timegate:timegate", {
|
||||
fixed = boxes
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
paramtype2 = "4dir",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@@ -84,7 +84,8 @@ mesecon.register_node("moremesecons_timegate:timegate", {
|
||||
minetest.get_meta(pos):set_string("time", fields.time)
|
||||
end
|
||||
end,
|
||||
on_timer = turnoff
|
||||
on_timer = turnoff,
|
||||
on_rotate = mesecon.on_rotate
|
||||
},{
|
||||
tiles = {
|
||||
"moremesecons_timegate_off.png",
|
||||
|
||||
Reference in New Issue
Block a user