Skip to content

Commit

Permalink
Fix the block settings lock callback handler not setting a return value
Browse files Browse the repository at this point in the history
Fixes #79
  • Loading branch information
haykam821 committed Jun 16, 2023
1 parent cb930be commit 3670219
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class MixinAbstractBlockSettings implements BlockSettingsLock {
@Inject(method = "sounds", at = @At("HEAD"), cancellable = true)
private void terraform$preventSoundsOverride(CallbackInfoReturnable<AbstractBlock.Settings> ci) {
if (this.terraform$locked) {
ci.cancel();
ci.setReturnValue((AbstractBlock.Settings) (Object) this);
this.terraform$locked = false;
}
}
Expand Down

0 comments on commit 3670219

Please sign in to comment.