mirror of
https://github.com/HybridDog/pdisc.git
synced 2025-06-30 15:20:39 +02:00
Compare commits
1 Commits
master
...
nalc-1.2.0
Author | SHA1 | Date | |
---|---|---|---|
bce2421ac5 |
2
init.lua
2
init.lua
@ -15,5 +15,5 @@ local msg = "[pdisc] loaded after ca. " .. time .. " seconds."
|
|||||||
if time > 0.01 then
|
if time > 0.01 then
|
||||||
print(msg)
|
print(msg)
|
||||||
else
|
else
|
||||||
minetest.log("info", msg)
|
minetest.log("action", msg)
|
||||||
end
|
end
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,2 +0,0 @@
|
|||||||
name = pdisc
|
|
||||||
description = A mod supposed to be used for programming robots in minetest
|
|
@ -34,7 +34,7 @@ s = {
|
|||||||
end
|
end
|
||||||
local tocopy = {}
|
local tocopy = {}
|
||||||
local frmln = #fromprefix
|
local frmln = #fromprefix
|
||||||
for name in pairs(thread.vars) do
|
for name,v in pairs(thread.vars) do
|
||||||
if name:sub(1, frmln) == fromprefix then
|
if name:sub(1, frmln) == fromprefix then
|
||||||
tocopy[#tocopy+1] = name:sub(frmln+1)
|
tocopy[#tocopy+1] = name:sub(frmln+1)
|
||||||
end
|
end
|
||||||
@ -89,7 +89,7 @@ s = {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
mul = function(params, faden)
|
mul = function(params)
|
||||||
local p1,p2 = unpack(params)
|
local p1,p2 = unpack(params)
|
||||||
local t1 = type(p1)
|
local t1 = type(p1)
|
||||||
local t2 = type(p2)
|
local t2 = type(p2)
|
||||||
|
Reference in New Issue
Block a user