Skip to content

Commit

Permalink
Potential fix to #78
Browse files Browse the repository at this point in the history
  • Loading branch information
Andromander committed Jan 1, 2021
1 parent ab73ce1 commit 089e5c4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import androsa.gaiadimension.registry.ModBlocks;
import net.minecraft.block.BlockState;
import net.minecraft.block.IGrowable;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.FlowersFeature;
Expand Down Expand Up @@ -35,10 +34,6 @@ public void grow(ServerWorld worldIn, Random rand, BlockPos pos, BlockState stat
}

BlockState blockstate2 = worldIn.getBlockState(blockpos1);
if (blockstate2.isIn(blackGrowth.getBlock()) && rand.nextInt(10) == 0) {
((IGrowable)blackGrowth.getBlock()).grow(worldIn, rand, blockpos1, blockstate2);
}

if (blockstate2.isAir()) {
BlockState blockstate1;
if (rand.nextInt(8) == 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import androsa.gaiadimension.registry.ModBiomes;
import androsa.gaiadimension.registry.ModBlocks;
import net.minecraft.block.BlockState;
import net.minecraft.block.IGrowable;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.FlowersFeature;
Expand Down Expand Up @@ -37,10 +36,6 @@ public void grow(ServerWorld worldIn, Random rand, BlockPos pos, BlockState stat
}

BlockState blockstate2 = worldIn.getBlockState(blockpos1);
if (blockstate2.isIn(normalGrowth.getBlock()) && rand.nextInt(10) == 0) {
((IGrowable)normalGrowth.getBlock()).grow(worldIn, rand, blockpos1, blockstate2);
}

if (blockstate2.isAir()) {
BlockState blockstate1;
if (rand.nextInt(8) == 0) {
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/androsa/gaiadimension/block/SoftGrassBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import androsa.gaiadimension.registry.ModBlocks;
import net.minecraft.block.BlockState;
import net.minecraft.block.IGrowable;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.FlowersFeature;
Expand Down Expand Up @@ -34,10 +33,6 @@ public void grow(ServerWorld worldIn, Random rand, BlockPos pos, BlockState stat
}

BlockState blockstate2 = worldIn.getBlockState(blockpos1);
if (blockstate2.isIn(growth.getBlock()) && rand.nextInt(10) == 0) {
((IGrowable)growth.getBlock()).grow(worldIn, rand, blockpos1, blockstate2);
}

if (blockstate2.isAir()) {
BlockState blockstate1;
if (rand.nextInt(8) == 0) {
Expand Down

0 comments on commit 089e5c4

Please sign in to comment.