prevent invalid rotations and add on_rotate callbacks

This commit is contained in:
tour
2025-11-12 02:07:45 +01:00
committed by SmallJoker
parent 46d1f500bf
commit 3c3fc6749a
6 changed files with 12 additions and 6 deletions

View File

@@ -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",