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

@@ -41,10 +41,11 @@ mesecon.register_node("moremesecons_signalchanger:signalchanger", {
inventory_image = "moremesecons_signalchanger_off.png",
groups = {dig_immediate = 2},
paramtype = "light",
paramtype2 = "facedir",
paramtype2 = "4dir",
drawtype = "nodebox",
selection_box = nodebox,
node_box = nodebox,
on_rotate = mesecon.on_rotate,
},{
groups = {dig_immediate = 2},
mesecons = {