From a63e8ef71248ff02b66065898c5ad9da53614f58 Mon Sep 17 00:00:00 2001 From: Petteri <26197131+PetteriM1@users.noreply.github.com> Date: Sun, 10 Apr 2022 23:34:59 +0300 Subject: [PATCH] BlockCategory for ground blocks --- .../java/org/cloudburstmc/api/block/BlockCategories.java | 7 +++++++ .../java/org/cloudburstmc/api/block/BlockCategory.java | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/cloudburstmc/api/block/BlockCategories.java b/src/main/java/org/cloudburstmc/api/block/BlockCategories.java index a769e5c37..f225d11b3 100644 --- a/src/main/java/org/cloudburstmc/api/block/BlockCategories.java +++ b/src/main/java/org/cloudburstmc/api/block/BlockCategories.java @@ -442,6 +442,13 @@ private void initDefaultCategories() { DETECTOR_RAIL ); + categorize(BlockCategory.GROUND, + GRASS, + DIRT, + FARMLAND, + PODZOL, + MYCELIUM + ); inherit(BlockCategory.TRANSPARENT, BlockCategory.STAIRS, diff --git a/src/main/java/org/cloudburstmc/api/block/BlockCategory.java b/src/main/java/org/cloudburstmc/api/block/BlockCategory.java index b0925b268..3ad71b8e9 100644 --- a/src/main/java/org/cloudburstmc/api/block/BlockCategory.java +++ b/src/main/java/org/cloudburstmc/api/block/BlockCategory.java @@ -19,5 +19,6 @@ public enum BlockCategory { STEM, BUTTON, PRESSURE_PLATE, - RAIL + RAIL, + GROUND }