mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-25 20:58:34 +01:00
Fixed winter's calling replacing blocks that are waterlogged
Closes #187
This commit is contained in:
parent
64fb7483bc
commit
b77aab63a8
1 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ public class TileEntitySnowCreator extends TileEntityImpl implements ITickableTi
|
||||||
|
|
||||||
Fluid fluid = this.world.getFluidState(down).getFluid();
|
Fluid fluid = this.world.getFluidState(down).getFluid();
|
||||||
if (fluid == Fluids.WATER) {
|
if (fluid == Fluids.WATER) {
|
||||||
|
if (this.world.getBlockState(down).getMaterial().isReplaceable())
|
||||||
this.world.setBlockState(down, Blocks.ICE.getDefaultState());
|
this.world.setBlockState(down, Blocks.ICE.getDefaultState());
|
||||||
} else if (Blocks.SNOW.getDefaultState().isValidPosition(this.world, pos) && this.world.getBlockState(pos).getBlock() != Blocks.SNOW && this.world.getBlockState(pos).getMaterial().isReplaceable()) {
|
} 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());
|
this.world.setBlockState(pos, Blocks.SNOW.getDefaultState());
|
||||||
|
|
Loading…
Reference in a new issue