mirror of
https://github.com/tacigar/maidroid.git
synced 2025-01-10 16:20:19 +01:00
Add maidroid_aux mod
This commit is contained in:
parent
dcf7cd3fe8
commit
b2f654ef5d
9
maidroid_aux/init.lua
Normal file
9
maidroid_aux/init.lua
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
------------------------------------------------------------
|
||||||
|
-- Copyright (c) 2016 tacigar. All rights reserved.
|
||||||
|
-- https://github.com/tacigar/maidroid
|
||||||
|
------------------------------------------------------------
|
||||||
|
|
||||||
|
maidroid_aux = {}
|
||||||
|
|
||||||
|
maidroid_aux.modname = "maidroid_aux"
|
||||||
|
maidroid_aux.modpath = minetest.get_modpath(maidroid_aux.modname)
|
15
maidroid_aux/table.lua
Normal file
15
maidroid_aux/table.lua
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
------------------------------------------------------------
|
||||||
|
-- Copyright (c) 2016 tacigar. All rights reserved.
|
||||||
|
-- https://github.com/tacigar/maidroid
|
||||||
|
------------------------------------------------------------
|
||||||
|
|
||||||
|
maidroid_aux.table = {}
|
||||||
|
|
||||||
|
function maidroid_aux.table.find(t, v)
|
||||||
|
for _, value in ipairs(t) do
|
||||||
|
if v == value then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user