mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-12 07:58:32 +02:00
Fix = operator
This commit is contained in:
parent
e3d2b07cd5
commit
0d6749a264
@ -197,7 +197,10 @@ function yc_command_if_parsecondition(cond, L)
|
|||||||
local a = tonumber(cond:sub(i+1, i+1))
|
local a = tonumber(cond:sub(i+1, i+1))
|
||||||
if a == nil then break end
|
if a == nil then break end
|
||||||
if s == "=" then
|
if s == "=" then
|
||||||
cond = string.gsub(cond, b..s..a, tostring(a == b))
|
buf = (a == b)
|
||||||
|
if buf == true then buf = "1" end
|
||||||
|
if buf == false then buf = "0" end
|
||||||
|
cond = string.gsub(cond, b..s..a, buf)
|
||||||
i = 1
|
i = 1
|
||||||
l = string.len(cond)
|
l = string.len(cond)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user