From 86b6a1a950f3915124495e4183fcf9dd6fdc180b Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 13 Dec 2022 12:33:11 +0000 Subject: [PATCH] check staticdata for egg capture --- api.lua | 10 +++++++--- license.txt | 10 ++++++++++ sounds/license.txt | 10 ---------- 3 files changed, 17 insertions(+), 13 deletions(-) delete mode 100644 sounds/license.txt diff --git a/api.lua b/api.lua index 70d8974..7e66047 100644 --- a/api.lua +++ b/api.lua @@ -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 diff --git a/license.txt b/license.txt index 776a75f..8bde134 100644 --- a/license.txt +++ b/license.txt @@ -23,5 +23,15 @@ THE SOFTWARE. Textures under CC0 license by TenPlus1 + ShadowNinja (CC BY-SA 3.0): tnt_smoke.png + +mobs_swing.ogg by qubodup (CC0) + - http://freesound.org/people/qubodup/sounds/60012/ + +mobs_spell.ogg by littlerobotsoundfactory (CC0) + - http://freesound.org/people/LittleRobotSoundFactory/sounds/270396/ + +mobs_punch.ogg by Merrick079 (CC0) + - https://freesound.org/people/Merrick079/sounds/566436/ diff --git a/sounds/license.txt b/sounds/license.txt deleted file mode 100644 index acf8d1c..0000000 --- a/sounds/license.txt +++ /dev/null @@ -1,10 +0,0 @@ -Creative Commons 0 sounds from Freesound.org - -mobs_swing.ogg by qubodup - - http://freesound.org/people/qubodup/sounds/60012/ - -mobs_spell.ogg by littlerobotsoundfactory - - http://freesound.org/people/LittleRobotSoundFactory/sounds/270396/ - -mobs_punch.ogg by Merrick079 - - https://freesound.org/people/Merrick079/sounds/566436/