Skip to content

Commit

Permalink
Make snow blocks melt when under non-air blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Dec 26, 2023
1 parent 077dcde commit 00e573b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ private void tryMeltBlock(ServerLevel level, BlockPos toMelt) {
} else {
level.setBlockAndUpdate(above, Blocks.AIR.defaultBlockState());
}
} else if (stateAbove.getBlock() == Blocks.AIR && (state.getBlock() == Blocks.SNOW_BLOCK || state.getBlock() == Blocks.POWDER_SNOW)) {
} else if (state.getBlock() == Blocks.SNOW_BLOCK || state.getBlock() == Blocks.POWDER_SNOW) {
level.setBlockAndUpdate(above, Blocks.SNOW.defaultBlockState().setValue(SnowLayerBlock.LAYERS, 7));
}
}
Expand Down

0 comments on commit 00e573b

Please sign in to comment.