1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-07-01 16:00:23 +02:00

check staticdata for egg capture

This commit is contained in:
tenplus1
2022-12-13 12:33:11 +00:00
parent 54cb8f487e
commit 86b6a1a950
3 changed files with 17 additions and 13 deletions

10
api.lua
View File

@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20221128",
version = "20221213",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -4424,7 +4424,9 @@ function mobs:force_capture(self, clicker)
if t ~= "function"
and t ~= "nil"
and t ~= "userdata" then
and t ~= "userdata"
and _ ~= "object"
and _ ~= "_cmi_components" then
tmp[_] = self[_]
end
end
@ -4538,7 +4540,9 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net,
if t ~= "function"
and t ~= "nil"
and t ~= "userdata" then
and t ~= "userdata"
and _ ~= "object"
and _ ~= "_cmi_components" then
tmp[_] = self[_]
end
end