Try fixing #72

This commit is contained in:
Starbeamrainbowlabs 2021-12-26 22:36:24 +00:00
parent 01d6132055
commit 502595579e
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -13,15 +13,11 @@
-- module: bit
local bit
if minetest.global_exists("bit") then
bit = bit
else
bit = {}
bit.bits = 32
bit.powtab = { 1 }
if not minetest.global_exists("bit") then
bit = {
bits = 32,
powtab = { 1 }
}
for b = 1, bit.bits - 1 do
bit.powtab[#bit.powtab + 1] = math.pow(2, b)
end