2 Commits

Author SHA1 Message Date
d7e352d2d7 Add mod.conf 2022-07-02 13:26:22 +02:00
948e6e3a8f Add a missing parameter to mul 2021-01-17 17:16:35 +01:00
2 changed files with 4 additions and 2 deletions

2
mod.conf Normal file
View File

@ -0,0 +1,2 @@
name = pdisc
description = A mod supposed to be used for programming robots in minetest

View File

@ -34,7 +34,7 @@ s = {
end
local tocopy = {}
local frmln = #fromprefix
for name,v in pairs(thread.vars) do
for name in pairs(thread.vars) do
if name:sub(1, frmln) == fromprefix then
tocopy[#tocopy+1] = name:sub(frmln+1)
end
@ -89,7 +89,7 @@ s = {
end
end,
mul = function(params)
mul = function(params, faden)
local p1,p2 = unpack(params)
local t1 = type(p1)
local t2 = type(p2)