Add explanation of bit setting

This may not be adequate.
This commit is contained in:
Jude Melton-Houghton 2022-09-13 17:56:34 -04:00
parent dfd7918d40
commit 384de08243
1 changed files with 1 additions and 0 deletions

View File

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