From 5f78dfddb292e38fe62db910f678d940ce42303e Mon Sep 17 00:00:00 2001 From: LudoCrypt <60561627+LudoCrypt@users.noreply.github.com> Date: Tue, 11 Jan 2022 19:28:34 -0600 Subject: [PATCH] swap volume & pitch --- gradle.properties | 2 +- .../net/ludocrypt/limlib/mixin/ServerPlayerEntityMixin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 64f4700..8c88f51 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,6 +5,6 @@ yarn_mappings=1.18.1+build.18 loader_version=0.12.12 fabric_version=0.45.2+1.18 -mod_version = 3.0.1 +mod_version = 4.0.0 maven_group = net.ludocrypt archives_base_name = limlib diff --git a/src/main/java/net/ludocrypt/limlib/mixin/ServerPlayerEntityMixin.java b/src/main/java/net/ludocrypt/limlib/mixin/ServerPlayerEntityMixin.java index e1ec058..e49e156 100644 --- a/src/main/java/net/ludocrypt/limlib/mixin/ServerPlayerEntityMixin.java +++ b/src/main/java/net/ludocrypt/limlib/mixin/ServerPlayerEntityMixin.java @@ -38,7 +38,7 @@ public ServerPlayerEntityMixin(World world, BlockPos pos, float yaw, GameProfile public void limlib$moveToWorld(ServerWorld to, CallbackInfoReturnable ci) { Optional optional = LiminalTravelSounds.getCurrent(((ServerPlayerEntity) (Object) this).getWorld(), to); if (optional.isPresent()) { - this.networkHandler.sendPacket(new PlaySoundS2CPacket(optional.get(), SoundCategory.AMBIENT, this.getX(), this.getY(), this.getZ(), world.getRandom().nextFloat() * 0.4F + 0.8F, 0.25F)); + this.networkHandler.sendPacket(new PlaySoundS2CPacket(optional.get(), SoundCategory.AMBIENT, this.getX(), this.getY(), this.getZ(), 0.25F, world.getRandom().nextFloat() * 0.4F + 0.8F)); } }