From 1304db472daada22578182e8f79a5991f01ae88e Mon Sep 17 00:00:00 2001 From: Ukendio Date: Sun, 24 Dec 2023 18:01:48 +0100 Subject: [PATCH] Pull in upstream change from query-iter --- lib/World.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/World.lua b/lib/World.lua index 3d1fd08..4212a82 100644 --- a/lib/World.lua +++ b/lib/World.lua @@ -407,10 +407,14 @@ local function noop() end local noopQuery = setmetatable({ next = noop, snapshot = noop, - without = noop, + without = function(self) + return self + end, view = noop, }, { - __iter = noop, + __iter = function() + return noopQuery + end, }) function World:query(...)