Skip to content

Commit 1ba082a

Browse files
committed
Bump bugfix - don't fail when adding VpeolRouteClickTo to a non-existing child
1 parent 1cfd498 commit 1ba082a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
## 0.26.1 - 2025-06-04
9+
### Fixed
10+
- Don't fail when adding `VpeolRouteClickTo` to a non-existing child.
811

912
## 0.26.0 - 2025-04-26
1013
### Changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = ["macros"]
44
[package]
55
name = "bevy-yoleck"
66
description = "Your Own Level Editor Creation Kit"
7-
version = "0.26.0"
7+
version = "0.26.1"
88
edition = "2021"
99
authors = ["IdanArye <idanarye@gmail.com>"]
1010
license = "MIT OR Apache-2.0"

src/vpeol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ pub fn handle_clickable_children_system<F, B>(
461461
if should_add_query.get(child).is_ok() {
462462
commands
463463
.entity(child)
464-
.insert((VpeolRouteClickTo(parent), B::default()));
464+
.try_insert((VpeolRouteClickTo(parent), B::default()));
465465
any_added = true;
466466
}
467467
}

0 commit comments

Comments
 (0)