From d6adbd5d7e454b29c65bb29aaebb4664138759c4 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Wed, 1 Mar 2023 21:31:32 -0300 Subject: [PATCH] fix crash --- forms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms.lua b/forms.lua index 3e7451a..c1d70e8 100755 --- a/forms.lua +++ b/forms.lua @@ -230,7 +230,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) local max_speed_anchor = 0.6 if ent._longit_speed then local is_admin = minetest.check_player_privs(player, {server=true}) --force stop by admins - if (math.abs(ent._longit_speed) < max_speed_anchor and self.isonground) or is_admin then + if (math.abs(ent._longit_speed) < max_speed_anchor and ent.isonground) or is_admin then ent.anchored = true ent.object:set_acceleration(vector.new()) ent.object:set_velocity(vector.new())