From 03ed7318ee33cb65371dc522040ea89c9e0195de Mon Sep 17 00:00:00 2001 From: Axen Date: Mon, 30 Sep 2024 00:00:30 +0300 Subject: [PATCH] Removed error about needing `index` in `world:target` * The `index` parameter was made optional in #131 --- src/init.luau | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/init.luau b/src/init.luau index 1fde9ee..5e9198c 100644 --- a/src/init.luau +++ b/src/init.luau @@ -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