mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-23 16:00:16 +01:00
fix typo
This commit is contained in:
parent
03ce8ada6b
commit
c25975e7ea
4
api.lua
4
api.lua
@ -19,7 +19,7 @@ end
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20241201",
|
version = "20241202",
|
||||||
spawning_mobs = {},
|
spawning_mobs = {},
|
||||||
translate = S,
|
translate = S,
|
||||||
node_snow = has(minetest.registered_aliases["mapgen_snow"])
|
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
|
-- check for node immunity or special damage
|
||||||
local damage = def.damage_per_second
|
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
|
if self.immune_to[n][1] == nodename then
|
||||||
damage = self.immune_to[n][2] or 0 ; break
|
damage = self.immune_to[n][2] or 0 ; break
|
||||||
|
Loading…
Reference in New Issue
Block a user