mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-09-22 13:01:12 +03:00
Bugfix: cap lightning distance (#12659)
This commit is contained in:
@@ -84,7 +84,7 @@ public class Lightning{
|
||||
|
||||
Unit furthest = Geometry.findFurthest(x, y, entities);
|
||||
|
||||
if(furthest != null){
|
||||
if(furthest != null && furthest.dst(x, y) < length * 1.5f){
|
||||
hit.add(furthest.id());
|
||||
x = furthest.x();
|
||||
y = furthest.y();
|
||||
|
||||
Reference in New Issue
Block a user