From 089e5c450b3638fd905eea50f9dd5af828d46356 Mon Sep 17 00:00:00 2001 From: Andromander Date: Fri, 1 Jan 2021 12:46:04 +1000 Subject: [PATCH] Potential fix to #78 --- .../java/androsa/gaiadimension/block/CorruptGrassBlock.java | 5 ----- .../java/androsa/gaiadimension/block/GlitterGrassBlock.java | 5 ----- .../java/androsa/gaiadimension/block/SoftGrassBlock.java | 5 ----- 3 files changed, 15 deletions(-) diff --git a/src/main/java/androsa/gaiadimension/block/CorruptGrassBlock.java b/src/main/java/androsa/gaiadimension/block/CorruptGrassBlock.java index 0011d433d..5400ba66f 100644 --- a/src/main/java/androsa/gaiadimension/block/CorruptGrassBlock.java +++ b/src/main/java/androsa/gaiadimension/block/CorruptGrassBlock.java @@ -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; @@ -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) { diff --git a/src/main/java/androsa/gaiadimension/block/GlitterGrassBlock.java b/src/main/java/androsa/gaiadimension/block/GlitterGrassBlock.java index cc75adb62..24acb9ec7 100644 --- a/src/main/java/androsa/gaiadimension/block/GlitterGrassBlock.java +++ b/src/main/java/androsa/gaiadimension/block/GlitterGrassBlock.java @@ -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; @@ -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) { diff --git a/src/main/java/androsa/gaiadimension/block/SoftGrassBlock.java b/src/main/java/androsa/gaiadimension/block/SoftGrassBlock.java index 92c27115a..98c722321 100644 --- a/src/main/java/androsa/gaiadimension/block/SoftGrassBlock.java +++ b/src/main/java/androsa/gaiadimension/block/SoftGrassBlock.java @@ -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; @@ -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) {