GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add air to list of replaceable blocks (#2) · ssttevee/feather@237389b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • core/blocks/src
    • categories.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎core/blocks/src/categories.rs‎

Copy file name to clipboardExpand all lines: core/blocks/src/categories.rs
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,9 @@ impl BlockId {
130130
}
131131

132132
pub fn is_replaceable(self) -> bool {
133-
matches!(
134-
self.kind(),
135-
BlockKind::Grass | BlockKind::TallGrass | BlockKind::Water | BlockKind::Lava
136-
)
133+
self.is_air()
134+
|| self.is_fluid()
135+
|| matches!(self.kind(), BlockKind::Grass | BlockKind::TallGrass)
137136
}
138137

139138
pub fn is_shulker_box(self) -> bool {

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.