diff --git a/perovskite_game_api/src/default_game/foliage.rs b/perovskite_game_api/src/default_game/foliage.rs index 41d2639..7eb5417 100644 --- a/perovskite_game_api/src/default_game/foliage.rs +++ b/perovskite_game_api/src/default_game/foliage.rs @@ -173,6 +173,7 @@ fn register_flowers(builder: &mut GameBuilder) -> Result<()> { .set_plant_like_appearance(PlantLikeAppearanceBuilder::new().set_texture(texture)) .set_display_name(display_name) .set_inventory_texture(texture) + .add_block_group(foliage_groups::FLOWERS) .set_allow_light_propagation(true) .add_modifier(Box::new(|block: &mut BlockType| { block.client_info.physics_info = Some(PhysicsInfo::Air(Empty {})); diff --git a/perovskite_game_api/src/default_game/game_behaviors.rs b/perovskite_game_api/src/default_game/game_behaviors.rs index 7f58069..dca3707 100644 --- a/perovskite_game_api/src/default_game/game_behaviors.rs +++ b/perovskite_game_api/src/default_game/game_behaviors.rs @@ -230,6 +230,7 @@ impl InventoryPopupProvider for DefaultGameInventoryPopupProvider { .iter() .any(|x| re.is_match(x)) || re.is_match(&x.proto.display_name) + || re.is_match(&x.proto.short_name) }) }) .cloned()