1
0
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:
tacigar 2016-12-19 11:13:10 +09:00
parent dcf7cd3fe8
commit b2f654ef5d
2 changed files with 24 additions and 0 deletions

9
maidroid_aux/init.lua Normal file
View 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
View 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