From 5596d2110b15347f9c65ff443421fd642a538751 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 12 Mar 2024 08:36:44 +0000 Subject: [PATCH] add nil checks --- nssm_api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nssm_api.lua b/nssm_api.lua index ad941d8..f5e898d 100644 --- a/nssm_api.lua +++ b/nssm_api.lua @@ -243,7 +243,7 @@ function nssm:putting_ability( --puts under the mob the block defined as 'p_blo max_vel --max velocity of the mob ) - local v = self.object:get_velocity() + local v = self.object:get_velocity() ; if not v then return end local dx = 0 local dz = 0 @@ -344,7 +344,7 @@ function nssm:midas_ability( --ability to transform every blocks it touches in height --height of the mob ) - local v = self.object:get_velocity() + local v = self.object:get_velocity() ; if not v then return end local pos = self.object:get_pos() if minetest.is_protected(pos, "") then