License change

This commit is contained in:
Rendo 2026-01-27 16:45:02 +05:00
commit 691350d991
2 changed files with 10 additions and 226 deletions

View file

@ -20,7 +20,9 @@ pub fn card_playing_system(
Sprite::from_image(textures.fosma_texture()),
))
.id();
grid.try_set(mouse_position.0.truncate(), fosma);
commands.entity(event.0).despawn();
if grid.try_set(mouse_position.0.truncate(), fosma) {
commands.entity(event.0).despawn();
} else {
commands.entity(fosma).despawn();
}
}