Bugfix lightning chain distance (again) (#12695)

This commit is contained in:
EggleEgg
2026-09-20 09:19:40 -04:00
committed by GitHub
parent 9f065cea59
commit 2f3a3979a4
+1 -1
View File
@@ -84,7 +84,7 @@ public class Lightning{
Unit furthest = Geometry.findFurthest(x, y, entities);
if(furthest != null && furthest.dst(x, y) < length * 1.5f){
if(furthest != null && furthest.within(x, y, hitRange * 2f)){
hit.add(furthest.id());
x = furthest.x();
y = furthest.y();