mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-02 10:37:54 +00:00
Fix playNote not working for Speaker peripheral.
This commit is contained in:
@@ -64,7 +64,7 @@ public class PlayRecordClientMessage implements NetworkMessage {
|
|||||||
} else {
|
} else {
|
||||||
buf.writeBoolean(true);
|
buf.writeBoolean(true);
|
||||||
buf.writeString(this.name);
|
buf.writeString(this.name);
|
||||||
buf.writeIdentifier(this.soundEvent.getId());
|
buf.writeIdentifier(this.soundEvent.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -153,8 +153,7 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
|||||||
|
|
||||||
// If the resource location for note block notes changes, this method call will need to be updated
|
// If the resource location for note block notes changes, this method call will need to be updated
|
||||||
boolean success = this.playSound(context,
|
boolean success = this.playSound(context,
|
||||||
instrument.getSound()
|
instrument.getSound().id,
|
||||||
.getId(),
|
|
||||||
volume,
|
volume,
|
||||||
(float) Math.pow(2.0, (pitch - 12.0) / 12.0),
|
(float) Math.pow(2.0, (pitch - 12.0) / 12.0),
|
||||||
true);
|
true);
|
||||||
|
@@ -20,3 +20,4 @@ accessible field net/minecraft/client/render/model/BakedQuad sprite Lnet/minecra
|
|||||||
accessible field net/minecraft/client/util/math/AffineTransformation translation Lnet/minecraft/client/util/math/Vector3f;
|
accessible field net/minecraft/client/util/math/AffineTransformation translation Lnet/minecraft/client/util/math/Vector3f;
|
||||||
accessible field net/minecraft/client/util/math/AffineTransformation scale Lnet/minecraft/client/util/math/Vector3f;
|
accessible field net/minecraft/client/util/math/AffineTransformation scale Lnet/minecraft/client/util/math/Vector3f;
|
||||||
accessible field net/minecraft/client/util/math/AffineTransformation rotation1 Lnet/minecraft/util/math/Quaternion;
|
accessible field net/minecraft/client/util/math/AffineTransformation rotation1 Lnet/minecraft/util/math/Quaternion;
|
||||||
|
accessible field net/minecraft/sound/SoundEvent id Lnet/minecraft/util/Identifier;
|
||||||
|
Reference in New Issue
Block a user