This commit is contained in:
parent
d68e28ba0a
commit
b2cc5c7c93
|
@ -16,6 +16,6 @@ public class CancelClickSoundMixin {
|
|||
|
||||
@Inject(method = "playDownSound", at = @At(value = "HEAD"), cancellable = true)
|
||||
private void injected(SoundManager soundManager, CallbackInfo ci) {
|
||||
if (this.message.equals(Mod.BUTTON_TEXT)) ci.cancel();
|
||||
if (this.message != null && this.message.equals(Mod.BUTTON_TEXT)) ci.cancel();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue