mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-01-04 17:20:58 +07:00
evolved.id works with negative count parameter
This commit is contained in:
@@ -56,6 +56,10 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
do
|
do
|
||||||
|
do
|
||||||
|
local i0 = evo.id(-1)
|
||||||
|
assert(type(i0) == 'nil')
|
||||||
|
end
|
||||||
do
|
do
|
||||||
local i0 = evo.id(0)
|
local i0 = evo.id(0)
|
||||||
assert(type(i0) == 'nil')
|
assert(type(i0) == 'nil')
|
||||||
|
|||||||
@@ -3458,7 +3458,7 @@ end
|
|||||||
function __evolved_id(count)
|
function __evolved_id(count)
|
||||||
count = count or 1
|
count = count or 1
|
||||||
|
|
||||||
if count == 0 then
|
if count <= 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user