Skip to content

Commit 32fad96

Browse files
Merge pull request #14 from PetteriM1/server-155
BlockCategory for ground blocks
2 parents 2243630 + a63e8ef commit 32fad96

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/main/java/org/cloudburstmc/api/block/BlockCategories.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,13 @@ private void initDefaultCategories() {
442442
DETECTOR_RAIL
443443
);
444444

445+
categorize(BlockCategory.GROUND,
446+
GRASS,
447+
DIRT,
448+
FARMLAND,
449+
PODZOL,
450+
MYCELIUM
451+
);
445452

446453
inherit(BlockCategory.TRANSPARENT,
447454
BlockCategory.STAIRS,

src/main/java/org/cloudburstmc/api/block/BlockCategory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ public enum BlockCategory {
1919
STEM,
2020
BUTTON,
2121
PRESSURE_PLATE,
22-
RAIL
22+
RAIL,
23+
GROUND
2324
}

0 commit comments

Comments
 (0)