3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-27 00:22:53 +01:00

Modify pitch instead of changing volume (-:

Dieser Commit ist enthalten in:
Matsv 2017-06-13 19:34:30 +02:00
Ursprung 258ca46428
Commit d330b64bba
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 97CEC2A2EA31350F
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -56,7 +56,7 @@ public class SoundPackets1_11 extends SoundRewriter<Protocol1_10To1_11> {
wrapper.cancel(); wrapper.cancel();
else { else {
if (hasPitch(oldId)) if (hasPitch(oldId))
wrapper.set(Type.FLOAT, 0, handlePitch(oldId)); wrapper.set(Type.FLOAT, 1, handlePitch(oldId));
wrapper.set(Type.VAR_INT, 0, newId); wrapper.set(Type.VAR_INT, 0, newId);
} }
} }

Datei anzeigen

@ -56,7 +56,7 @@ public class SoundPackets1_12 extends SoundRewriter<Protocol1_11_1To1_12> {
wrapper.cancel(); wrapper.cancel();
else { else {
if (hasPitch(oldId)) if (hasPitch(oldId))
wrapper.set(Type.FLOAT, 0, handlePitch(oldId)); wrapper.set(Type.FLOAT, 1, handlePitch(oldId));
wrapper.set(Type.VAR_INT, 0, newId); wrapper.set(Type.VAR_INT, 0, newId);
} }
} }
@ -97,7 +97,7 @@ public class SoundPackets1_12 extends SoundRewriter<Protocol1_11_1To1_12> {
added(319, 133, 0.6f); // entity.parrot.ambient -> entity.bat.ambient added(319, 133, 0.6f); // entity.parrot.ambient -> entity.bat.ambient
added(320, 134, 1.7f); // entity.parrot.death -> entity.bat.death added(320, 134, 1.7f); // entity.parrot.death -> entity.bat.death
added(321, 219, 1.5f); // entity.parrot.eat -> entity.generic.eat 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(323, 135, 1.6f); // entity.parrot.hurt -> entity.bat.hurt
added(324, 138, 1.5f); // entity.parrot.imitate.blaze -> entity.blaze.ambient added(324, 138, 1.5f); // entity.parrot.imitate.blaze -> entity.blaze.ambient
added(325, 163, 1.5f); // entity.parrot.imitate.creeper -> entity.creeper.primed added(325, 163, 1.5f); // entity.parrot.imitate.creeper -> entity.creeper.primed