Skip to content

Commit

Permalink
Merge pull request #14 from PetteriM1/server-155
Browse files Browse the repository at this point in the history
BlockCategory for ground blocks
  • Loading branch information
Creeperface01 committed Jun 15, 2022
2 parents 2243630 + a63e8ef commit 32fad96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/java/org/cloudburstmc/api/block/BlockCategories.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,13 @@ private void initDefaultCategories() {
DETECTOR_RAIL
);

categorize(BlockCategory.GROUND,
GRASS,
DIRT,
FARMLAND,
PODZOL,
MYCELIUM
);

inherit(BlockCategory.TRANSPARENT,
BlockCategory.STAIRS,
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/cloudburstmc/api/block/BlockCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ public enum BlockCategory {
STEM,
BUTTON,
PRESSURE_PLATE,
RAIL
RAIL,
GROUND
}

0 comments on commit 32fad96

Please sign in to comment.