mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-27 23:00:29 +02:00
Add explanation of bit setting
This may not be adequate.
This commit is contained in:
parent
dfd7918d40
commit
384de08243
|
@ -54,6 +54,7 @@ do
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
return
|
return
|
||||||
end
|
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 bit = tonumber(rule_name.name, 2)
|
||||||
local bits_above = node.param2 - node.param2 % (bit * 2)
|
local bits_above = node.param2 - node.param2 % (bit * 2)
|
||||||
local bits_below = node.param2 % bit
|
local bits_below = node.param2 % bit
|
||||||
|
|
Loading…
Reference in New Issue
Block a user