From c25975e7ea1438ed5ad427aaa11a07e884b927bc Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 2 Dec 2024 06:34:28 +0000 Subject: [PATCH] fix typo --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index e5b0a8a..83178cd 100644 --- a/api.lua +++ b/api.lua @@ -19,7 +19,7 @@ end mobs = { mod = "redo", - version = "20241201", + version = "20241202", spawning_mobs = {}, translate = S, node_snow = has(minetest.registered_aliases["mapgen_snow"]) @@ -900,7 +900,7 @@ local function is_node_dangerous(self, nodename) -- check for node immunity or special damage local damage = def.damage_per_second - for n = 1, #mob_object.immune_to do + for n = 1, #self.immune_to do if self.immune_to[n][1] == nodename then damage = self.immune_to[n][2] or 0 ; break