mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-07 10:02:01 +01:00
Fix ender pearl sound in 1.11->1.10
This commit is contained in:
parent
13bcce6d30
commit
f487f13e82
@ -16,7 +16,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public abstract class LegacySoundRewriter<T extends BackwardsProtocol> extends Rewriter<T> {
|
||||
private final Map<Integer, SoundData> soundRewrites = new HashMap<>();
|
||||
protected final Map<Integer, SoundData> soundRewrites = new HashMap<>();
|
||||
|
||||
protected LegacySoundRewriter(T protocol) {
|
||||
super(protocol);
|
||||
@ -71,7 +71,7 @@ public abstract class LegacySoundRewriter<T extends BackwardsProtocol> extends R
|
||||
private final float newPitch;
|
||||
private final boolean added;
|
||||
|
||||
private SoundData(int replacementSound, boolean changePitch, float newPitch, boolean added) {
|
||||
public SoundData(int replacementSound, boolean changePitch, float newPitch, boolean added) {
|
||||
this.replacementSound = replacementSound;
|
||||
this.changePitch = changePitch;
|
||||
this.newPitch = newPitch;
|
||||
|
@ -79,7 +79,8 @@ public class SoundPackets1_11 extends LegacySoundRewriter<Protocol1_10To1_11> {
|
||||
|
||||
added(176, 227); // entity.elder_guardian.flop -> entity.guardian.flop
|
||||
|
||||
removed(196); // entity.experience_orb.touch
|
||||
// 1.10 entity.experience_orb.touch was removed; subtract id and properly map ender pearl sound on that id
|
||||
soundRewrites.put(196, new SoundData(193, false, -1, false));
|
||||
|
||||
added(197, 402, 1.8f); // entity.evocation_fangs.attack -> entity.zombie.attack_iron_door
|
||||
added(198, 370, 0.4f); // entity.evocation_illager.ambient -> entity.villager.ambient
|
||||
|
Loading…
Reference in New Issue
Block a user