Skip to content

Commit

Permalink
add nil check to replace function
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed May 5, 2020
1 parent 99fe3d0 commit 9928b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")

mobs = {
mod = "redo",
version = "20200504",
version = "20200505",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
Expand Down Expand Up @@ -1423,7 +1423,7 @@ function mob_class:replace(pos)

if self.on_replace then

local oldnode = what
local oldnode = what or ""
local newnode = with

-- convert any group: replacements to actual node name
Expand Down

0 comments on commit 9928b0e

Please sign in to comment.