From 2d87fd5099508984d6643ddf0a0b577aba978388 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 23:01:45 +0100 Subject: [PATCH] Exclude grass blocks from earth ponies' ability so they aren't always swamped in tall grass every time --- .../minelittlepony/unicopia/ability/EarthPonyGrowAbility.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index 523e2fc4..c7e6493b 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -78,6 +78,10 @@ public class EarthPonyGrowAbility implements Ability { return growable.grow(w, state, pos) ? 1 : 0; } + if (w.getBlockState(pos).isOf(Blocks.GRASS_BLOCK)) { + return 0; + } + if (BoneMealItem.useOnFertilizable(stack, w, pos)) { if (w.random.nextInt(350) == 0) { if (w.getBlockState(pos.down()).isOf(Blocks.FARMLAND)) {