fixed coral crash
This commit is contained in:
1 parent
f6db78c04f
commit
34aaa2e46c
1 file changed
+2
-1
@@ -9,6 +9,7 @@ import net.minecraft.block.CoralBlock;
|
|||||||
import net.minecraft.block.CoralParentBlock;
|
import net.minecraft.block.CoralParentBlock;
|
||||||
import net.minecraft.block.Fertilizable;
|
import net.minecraft.block.Fertilizable;
|
||||||
import net.minecraft.block.MaterialColor;
|
import net.minecraft.block.MaterialColor;
|
||||||
|
import net.minecraft.server.world.ServerWorld;
|
||||||
import net.minecraft.tag.BlockTags;
|
import net.minecraft.tag.BlockTags;
|
||||||
import net.minecraft.tag.FluidTags;
|
import net.minecraft.tag.FluidTags;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
@@ -38,7 +39,7 @@ public abstract class CoralBlockMixin implements Fertilizable
|
|||||||
return (double)var1.random.nextFloat() < 0.15D;
|
return (double)var1.random.nextFloat() < 0.15D;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void grow(World worldIn, Random random, BlockPos pos, BlockState blockUnder)
|
public void grow(ServerWorld worldIn, Random random, BlockPos pos, BlockState blockUnder)
|
||||||
{
|
{
|
||||||
|
|
||||||
CoralFeature coral;
|
CoralFeature coral;
|
||||||
|
|||||||
Reference in new issue
Block a user