1
0
réplica de https://github.com/tacigar/maidroid.git sincronizado 2025-10-21 08:05:43 +02:00

Add maidroid_aux mod

Este cometimento está contido em:
tacigar
2016-12-19 11:13:10 +09:00
ascendente dcf7cd3fe8
cometimento b2f654ef5d
2 ficheiros modificados com 24 adições e 0 eliminações

9
maidroid_aux/init.lua Ficheiro normal
Ver ficheiro

@@ -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 Ficheiro normal
Ver ficheiro

@@ -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