summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-06-19 08:25:39 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-06-19 08:25:39 +0100
commit0d27bbe02da67ed6bdf9a171179077919b23eba4 (patch)
tree94f31d27ec99879a4ba16a1dc82bac58999cb360
parenta58299479e81c9f7f76cd331bfa8dd30208630eb (diff)
update cmi components
-rw-r--r--api.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/api.lua b/api.lua
index 63d4a80..df33ec1 100644
--- a/api.lua
+++ b/api.lua
@@ -1,9 +1,9 @@
--- Mobs Api (18th June 2017)
+-- Mobs Api (19th June 2017)
mobs = {}
mobs.mod = "redo"
-mobs.version = "20170618"
+mobs.version = "20170619"
-- Intllib
@@ -2253,7 +2253,7 @@ local mob_staticdata = function(self)
end
if use_cmi then
- self.serialized_cmi_components = cmi.serialize_components(self.cmi_components)
+ self.serialized_cmi_components = cmi.serialize_components(self._cmi_components)
end
local tmp = {}
@@ -2265,7 +2265,7 @@ local mob_staticdata = function(self)
if t ~= "function"
and t ~= "nil"
and t ~= "userdata"
- and _ ~= "cmi_components" then
+ and _ ~= "_cmi_components" then
tmp[_] = self[_]
end
end
@@ -2378,7 +2378,7 @@ local mob_activate = function(self, staticdata, def, dtime)
update_tag(self)
if use_cmi then
- self.cmi_components = cmi.activate_components(self.serialized_cmi_components)
+ self._cmi_components = cmi.activate_components(self.serialized_cmi_components)
cmi.notify_activate(self.object, dtime)
end
end
@@ -2611,7 +2611,7 @@ minetest.register_entity(name, {
attack_animals = def.attack_animals or false,
specific_attack = def.specific_attack,
owner_loyal = def.owner_loyal,
- cmi_is_mob = true,
+ _cmi_is_mob = true,
on_blast = def.on_blast or do_tnt,