From ce2a9e08ac134c39d583143bf08a87637ead7b2b Mon Sep 17 00:00:00 2001 From: Ukendio Date: Wed, 13 Nov 2024 01:18:08 +0100 Subject: [PATCH] return 0 instead --- src/init.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.luau b/src/init.luau index 90c0f989..a3f3350a 100644 --- a/src/init.luau +++ b/src/init.luau @@ -203,7 +203,7 @@ local function entity_index_get_alive(index: EntityIndex, e: i24): i53 if r then return index.dense_array[r.dense] end - error("Invalid entity") + return 0 end local function entity_index_is_alive(entity_index: EntityIndex, entity: number)