Skip to content

Commit

Permalink
Halved the volume elevators play sound at.
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterpicker committed Dec 14, 2024
1 parent 981d4bf commit d751539
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void takeElevator(BlockGetter world, BlockPos pos, ServerPlayer player, D
ElevatorEvents.USE_ELEVATOR.invoker().accept(useElevator);
return useElevator;
}).map(ElevatorEvents.UseElevator::getDestination).filter(Objects::nonNull).map(BlockPos::above).ifPresent(blockPos -> {
player.serverLevel().playSound(null, blockPos, GenerationsSounds.ELEVATOR.get(), SoundSource.BLOCKS);
player.serverLevel().playSound(null, blockPos, GenerationsSounds.ELEVATOR.get(), SoundSource.BLOCKS, 0.5f, 0.0f);
player.teleportTo(player.position().x(), blockPos.getY() - 0.5, player.position().z());
});
}
Expand Down

0 comments on commit d751539

Please sign in to comment.