Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove world:target debug error #137

Merged
merged 3 commits into from
Sep 29, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1711,15 +1711,6 @@ if _G.__JECS_DEBUG then
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

Expand Down