From e8c5f234777e17d84a7ab42f9feac4526c5906a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B5=D1=80=D1=85=D0=B0=D1=80=D0=B4=20PICCORO=20Len?= =?UTF-8?q?z=20McKAY?= Date: Mon, 24 Jan 2022 18:06:13 -0400 Subject: [PATCH] more nil pos checks --- mobs/nyan.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobs/nyan.lua b/mobs/nyan.lua index 56bba1c..e19cd40 100644 --- a/mobs/nyan.lua +++ b/mobs/nyan.lua @@ -25,7 +25,7 @@ mobs:register_mob("mobs_doomed:nyan", { run_chance = 20, jump = true, drops = { - {name = "mobs:meat_raw", chance = 2, min = 1, max = 1}, + {name = "mobs:meat_raw", chance = 1, min = 1, max = 1}, }, water_damage = 0, lava_damage = 2, @@ -45,7 +45,7 @@ mobs:register_mob("mobs_doomed:nyan", { }, do_custom = function(self) - local apos = self.object:get_pos() + local apos = self.object:get_pos(); if not apos then return end local vec = self.object:get_velocity() local part = minetest.add_particlespawner({ amount = 5,