Skip to content

Commit

Permalink
fix UseAnimation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
lonefelidae16 committed Dec 15, 2024
1 parent 3878dc8 commit 7ca53da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public abstract class ClientPlayerInteractionManagerMixin {
*/
@Inject(method = "interactItem", at = @At("RETURN"))
private void bedrockify$consumeItem(PlayerEntity player, Hand hand, CallbackInfoReturnable<ActionResult> cir) {
if (player == null || cir.getReturnValue() != ActionResult.SUCCESS) {
if (player == null || !(cir.getReturnValue() instanceof ActionResult.Success)) {
return;
}

Expand Down

0 comments on commit 7ca53da

Please sign in to comment.