Add files via upload
parent
a716867516
commit
98c87fe85c
|
@ -380,7 +380,7 @@ minetest.register_entity("aliveai_chemistry:item1",{
|
||||||
textures ={"aliveai_chemistry:tube"},
|
textures ={"aliveai_chemistry:tube"},
|
||||||
is_visible = true,
|
is_visible = true,
|
||||||
on_activate=function(self, staticdata)
|
on_activate=function(self, staticdata)
|
||||||
local r=aliveai.convertdata(staticdata)
|
local r=minetest.deserialize(staticdata)
|
||||||
if r and r~="" then
|
if r and r~="" then
|
||||||
self.chemistry={}
|
self.chemistry={}
|
||||||
for c, p in pairs(r) do
|
for c, p in pairs(r) do
|
||||||
|
@ -399,7 +399,7 @@ minetest.register_entity("aliveai_chemistry:item1",{
|
||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
get_staticdata = function(self)
|
get_staticdata = function(self)
|
||||||
return aliveai.convertdata(self.chemistry)
|
return minetest.serialize(self.chemistry)
|
||||||
end,
|
end,
|
||||||
on_step=function(self, dtime)
|
on_step=function(self, dtime)
|
||||||
self.time=self.time+dtime
|
self.time=self.time+dtime
|
||||||
|
|
Loading…
Reference in New Issue