Skip to content

Commit

Permalink
add flowers group to flowers
Browse files Browse the repository at this point in the history
  • Loading branch information
drey7925 committed Jan 1, 2024
1 parent 34b66e8 commit f2f9098
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions perovskite_game_api/src/default_game/foliage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}));
Expand Down
1 change: 1 addition & 0 deletions perovskite_game_api/src/default_game/game_behaviors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f2f9098

Please sign in to comment.