Skip to content

Commit

Permalink
Remove world:target debug error (#137)
Browse files Browse the repository at this point in the history
* Removed error about needing `index` in `world:target`

* The `index` parameter was made optional in #131

* Re-added `world.target` wrapper

* Remove world.target and world.remove wrappers

---------

Co-authored-by: EncodedVenom <32179912+EncodedVenom@users.noreply.github.com>
  • Loading branch information
1Axen and EncodedVenom authored Sep 29, 2024
1 parent a7fb67b commit a090dd7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1709,21 +1709,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

function World.new()
Expand Down

0 comments on commit a090dd7

Please sign in to comment.