From 721390483d58af091213917e12c70593f60e94d3 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 5 May 2024 07:39:59 +0100 Subject: [PATCH] add nil check for player in morgut.lua --- mobs/morgut.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobs/morgut.lua b/mobs/morgut.lua index 8808039..703a80d 100644 --- a/mobs/morgut.lua +++ b/mobs/morgut.lua @@ -130,7 +130,7 @@ mobs:register_mob("nssm:morgut", { minetest.after(1, function(self) - if self and self.attack:is_player() then + if self and self.attack and self.attack:is_player() then local pname = self.attack:get_player_name() local player_inv = minetest.get_inventory(