From d330b64bba965b9f528c282b0e9f1c37e101e172 Mon Sep 17 00:00:00 2001 From: Matsv Date: Tue, 13 Jun 2017 19:34:30 +0200 Subject: [PATCH] Modify pitch instead of changing volume (-: --- .../protocol/protocol1_10to1_11/packets/SoundPackets1_11.java | 2 +- .../protocol1_12to1_11_1/packets/SoundPackets1_12.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/SoundPackets1_11.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/SoundPackets1_11.java index fe01c2e0..2de1eb08 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/SoundPackets1_11.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/SoundPackets1_11.java @@ -56,7 +56,7 @@ public class SoundPackets1_11 extends SoundRewriter { wrapper.cancel(); else { if (hasPitch(oldId)) - wrapper.set(Type.FLOAT, 0, handlePitch(oldId)); + wrapper.set(Type.FLOAT, 1, handlePitch(oldId)); wrapper.set(Type.VAR_INT, 0, newId); } } diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/SoundPackets1_12.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/SoundPackets1_12.java index 550d0f77..6797f49c 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/SoundPackets1_12.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/SoundPackets1_12.java @@ -56,7 +56,7 @@ public class SoundPackets1_12 extends SoundRewriter { wrapper.cancel(); else { if (hasPitch(oldId)) - wrapper.set(Type.FLOAT, 0, handlePitch(oldId)); + wrapper.set(Type.FLOAT, 1, handlePitch(oldId)); wrapper.set(Type.VAR_INT, 0, newId); } } @@ -97,7 +97,7 @@ public class SoundPackets1_12 extends SoundRewriter { added(319, 133, 0.6f); // entity.parrot.ambient -> entity.bat.ambient added(320, 134, 1.7f); // entity.parrot.death -> entity.bat.death added(321, 219, 1.5f); // entity.parrot.eat -> entity.generic.eat - added(322, -1); // entity.parrot.fly -> nothing + added(322, 136, 0.7f); // entity.parrot.fly -> entity.bat.loop added(323, 135, 1.6f); // entity.parrot.hurt -> entity.bat.hurt added(324, 138, 1.5f); // entity.parrot.imitate.blaze -> entity.blaze.ambient added(325, 163, 1.5f); // entity.parrot.imitate.creeper -> entity.creeper.primed