Skip to content

Commit

Permalink
fix: 1.3.1
Browse files Browse the repository at this point in the history
1.3.1
  • Loading branch information
CallMeEchoCodes authored Dec 16, 2024
2 parents 0abb910 + cee145d commit a997b99
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2024 CallMeEcho
Copyright (c) 2024 Spirit Studios

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx2G
org.gradle.parallel=true

mod.version = 1.3.0
mod.version = 1.3.1
mod.group = dev.spiritstudios
mod.id = hollow
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected int getGrowthLength(Random random) {

@Override
protected boolean chooseStemState(BlockState state) {
return true;
return state.isAir() || state.isOf(Blocks.WATER);
}

@Override
Expand Down Expand Up @@ -87,7 +87,7 @@ protected FluidState getFluidState(BlockState state) {

@Override
protected void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) {
if (state.get(AGE) >= 25 || !(random.nextDouble() < 0.14)) return;
if (state.get(AGE) >= 25 || random.nextDouble() >= 0.25) return;
int outOfWater = 0;
BlockPos waterPos = pos;
while (!world.isWater(waterPos)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void onPlaced(World world, BlockPos pos, BlockState state, @Nullable Livi
@Override
protected void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) {
super.onStateReplaced(state, world, pos, newState, moved);
if (newState.isOf(this)) return;
if (state.isOf(newState.getBlock())) return;

for (BlockPos blockPos : getBlocks(pos, state)) {
if (blockPos.equals(pos)) continue;
Expand Down

0 comments on commit a997b99

Please sign in to comment.