mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Removed error about needing index
in world:target
* The `index` parameter was made optional in #131
This commit is contained in:
parent
a7fb67b85e
commit
03ed7318ee
1 changed files with 0 additions and 13 deletions
|
@ -1710,19 +1710,6 @@ if _G.__JECS_DEBUG then
|
|||
return world_get(world, entity, ...)
|
||||
end
|
||||
|
||||
World.target = function(world, entity, relation, index)
|
||||
if index == nil then
|
||||
local _1 = get_name(world, entity)
|
||||
local _2 = get_name(world, relation)
|
||||
|
||||
throw(
|
||||
"We have changed the function call to require an index parameter,"
|
||||
.. ` please use world:target({_1}, {_2}, 0)`
|
||||
)
|
||||
end
|
||||
return world_target(world, entity, relation, index)
|
||||
end
|
||||
|
||||
World.remove = function() end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue