From 6769f174af2af116e7867f0d24592ca8605d43c4 Mon Sep 17 00:00:00 2001 From: Daanish Date: Sun, 29 Mar 2026 11:15:47 +0000 Subject: [PATCH] fix torch position used by shader --- game/props/handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/props/handler.rb b/game/props/handler.rb index baafca9..19d383d 100644 --- a/game/props/handler.rb +++ b/game/props/handler.rb @@ -20,7 +20,7 @@ class PropsHandler end $bus.on(:nearby_torches) do |rect| - nearby_props(rect).select { |p| p.is_a?(Torch) }.map { |t| t.rect } + nearby_props(rect).select { |p| p.is_a?(Torch) }.map(&:rect).map { |t| [t[0] + t[2] / 2, t[1] + t[3] / 2] } end end