From 384de08243118f43ef8623dad976fea82b5da906 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Tue, 13 Sep 2022 17:56:34 -0400 Subject: [PATCH] Add explanation of bit setting This may not be adequate. --- .test_fixtures/mesecons.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/.test_fixtures/mesecons.lua b/.test_fixtures/mesecons.lua index c07cfb3..494c184 100644 --- a/.test_fixtures/mesecons.lua +++ b/.test_fixtures/mesecons.lua @@ -54,6 +54,7 @@ do minetest.remove_node(pos) return end + -- Set the value of a bit in param2 according to the rule name and new state. local bit = tonumber(rule_name.name, 2) local bits_above = node.param2 - node.param2 % (bit * 2) local bits_below = node.param2 % bit