mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 03:55:01 +00:00
bit polyfill: fix undeclared global accessed warning
This commit is contained in:
parent
fa2c0642c1
commit
9020948dc5
1 changed files with 7 additions and 1 deletions
|
@ -12,7 +12,13 @@
|
|||
-- Docs: http://bitop.luajit.org/api.html
|
||||
|
||||
-- module: bit
|
||||
local bit = bit or {}
|
||||
|
||||
local bit
|
||||
if minetest.global_exists("bit") then
|
||||
bit = bit
|
||||
else
|
||||
bit = {}
|
||||
end
|
||||
|
||||
bit.bits = 32
|
||||
bit.powtab = { 1 }
|
||||
|
|
Loading…
Reference in a new issue