mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
made the snow creator not infinitely use aura lol
This commit is contained in:
parent
5b0b797a2f
commit
f5ae1d59b4
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +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) {
|
||||||
this.world.setBlockState(down, Blocks.ICE.getDefaultState());
|
this.world.setBlockState(down, Blocks.ICE.getDefaultState());
|
||||||
} else if (Blocks.SNOW.getDefaultState().isValidPosition(this.world, pos)) {
|
} else if (Blocks.SNOW.getDefaultState().isValidPosition(this.world, pos) && this.world.getBlockState(pos).getBlock() != Blocks.SNOW) {
|
||||||
this.world.setBlockState(pos, Blocks.SNOW.getDefaultState());
|
this.world.setBlockState(pos, Blocks.SNOW.getDefaultState());
|
||||||
|
|
||||||
if (this.snowmanCount < range / 2 && this.world.rand.nextFloat() >= 0.995F) {
|
if (this.snowmanCount < range / 2 && this.world.rand.nextFloat() >= 0.995F) {
|
||||||
|
|
Loading…
Reference in a new issue