Skip to content

Commit

Permalink
fix: api v4无法触发触发器
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Dec 29, 2024
1 parent 604a62f commit 021f019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/extension/api/v4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub enum ApiV4 {

impl Api for ApiV4 {
fn handle_api(&self, ext: &ExtensionMap) {
for (extension, lua) in ext.iter().filter(|(_, lua)| get_api_version(lua) == 3) {
for (extension, lua) in ext.iter().filter(|(_, lua)| get_api_version(lua) == 4) {
match self.clone() {
Self::LoadFas(pid, pkg) => {
do_callback(extension, lua, "load_fas", (pid, pkg));
Expand Down

0 comments on commit 021f019

Please sign in to comment.