add nil check for player in morgut.lua
This commit is contained in:
parent
5a9ea84082
commit
721390483d
@ -130,7 +130,7 @@ mobs:register_mob("nssm:morgut", {
|
|||||||
|
|
||||||
minetest.after(1, function(self)
|
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 pname = self.attack:get_player_name()
|
||||||
local player_inv = minetest.get_inventory(
|
local player_inv = minetest.get_inventory(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user