mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Exclude grass blocks from earth ponies' ability so they aren't always swamped in tall grass every time
This commit is contained in:
parent
5196c9bf17
commit
2d87fd5099
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ public class EarthPonyGrowAbility implements Ability<Pos> {
|
|||
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)) {
|
||||
|
|
Loading…
Reference in a new issue