From 8f9e4df3512842444b838d60613efc629bf9b7ed Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 2 Sep 2020 21:36:08 +0200 Subject: [PATCH] fixed the winter's calling creating snow in invalid locations Closes #138 --- .../ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java index b38da9cd..85b67c12 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySnowCreator.java @@ -54,7 +54,7 @@ public class TileEntitySnowCreator extends TileEntityImpl implements ITickableTi Fluid fluid = this.world.getFluidState(down).getFluid(); if (fluid == Fluids.WATER) { this.world.setBlockState(down, Blocks.ICE.getDefaultState()); - } else if (Blocks.SNOW.getDefaultState().isValidPosition(this.world, pos) && this.world.getBlockState(pos).getBlock() != Blocks.SNOW) { + } else if (Blocks.SNOW.getDefaultState().isValidPosition(this.world, pos) && this.world.getBlockState(pos).getBlock() != Blocks.SNOW && this.world.getBlockState(pos).getMaterial().isReplaceable()) { this.world.setBlockState(pos, Blocks.SNOW.getDefaultState()); if (this.snowmanCount < range / 2 && this.world.rand.nextFloat() >= 0.995F) {