Waxed hanging signs play their own failed-interaction sound

HangingSignBlockEntity.getSignInteractionFailedSoundEvent is
block.hanging_sign.waxed_interact_fail, not the standing sign's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-27 06:50:22 +01:00
parent a8ccf43d2b
commit b463f1c80a
+8 -6
View File
@@ -87,12 +87,14 @@ impl Game<'_> {
return;
};
if sign.waxed {
self.audio.play(
"minecraft:block.sign.waxed_interact_fail",
Some(pos.map(|v| f64::from(v) + 0.5)),
1.0,
1.0,
);
// `getSignInteractionFailedSoundEvent`: a hanging sign has its own.
let sound = if sign.hanging {
"minecraft:block.hanging_sign.waxed_interact_fail"
} else {
"minecraft:block.sign.waxed_interact_fail"
};
self.audio
.play(sound, Some(pos.map(|v| f64::from(v) + 0.5)), 1.0, 1.0);
} else if self.may_build() {
let front = self.facing_sign_front(key);
self.open_sign_editor(key, front);