This commit is contained in:
Anuken
2023-03-25 13:01:12 -04:00
parent e4bef567b5
commit dfce361afc

View File

@@ -273,7 +273,7 @@ public class ControlPathfinder{
req.raycastTimer = 0;
}
if(req.rayPathIndex < len){
if(req.rayPathIndex < len && req.rayPathIndex >= 0){
Tile tile = tile(items[req.rayPathIndex]);
out.set(tile);