Skip to content

Commit

Permalink
Rename lambda parameter from minecraft -> client
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Dec 1, 2024
1 parent 08fbc86 commit 644ef14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static <E extends Throwable> void runOnClient(FailableConsumer<MinecraftC

public static <T, E extends Throwable> T computeOnClient(FailableFunction<MinecraftClient, T, E> action) throws E {
MutableObject<T> result = new MutableObject<>();
runOnClient(minecraft -> result.setValue(action.apply(minecraft)));
runOnClient(client -> result.setValue(action.apply(client)));
return result.getValue();
}
}

0 comments on commit 644ef14

Please sign in to comment.