From bf20c9f4bd1edc5f40c1e1103ecc8488e47828d1 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Thu, 15 Jun 2023 22:28:49 -0400 Subject: [PATCH] fix engine detection for 5.4 due callbacks handler * wrongly invoked register_on_authplayer over 5.0+ engines --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e4e9c8e..fa55bdd 100644 --- a/init.lua +++ b/init.lua @@ -24,7 +24,7 @@ local auth_filter = AuthFilter( world_path, "greenlist.mt" ) local auth_db = AuthDatabase( world_path, "auth.db" ) local auth_watchdog = AuthWatchdog( ) local is_50 = minetest.has_feature("object_use_texture_alpha") -local is_54 = minetest.has_feature("object_use_texture_alpha") +local is_54 = minetest.has_feature("direct_velocity_on_players") if is_50 then if minetest.register_on_auth_fail then