entities.lua
parent
7a4af208de
commit
e054616062
|
@ -208,6 +208,7 @@ minetest.register_entity("pa28:pa28", {
|
||||||
|
|
||||||
on_deactivate = function(self)
|
on_deactivate = function(self)
|
||||||
airutils.save_inventory(self)
|
airutils.save_inventory(self)
|
||||||
|
minetest.sound_stop(self.sound_handle)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_activate = function(self, staticdata, dtime_s)
|
on_activate = function(self, staticdata, dtime_s)
|
||||||
|
@ -286,6 +287,7 @@ minetest.register_entity("pa28:pa28", {
|
||||||
else
|
else
|
||||||
self.inv = inv
|
self.inv = inv
|
||||||
end
|
end
|
||||||
|
if self._engine_running then pa28.engineSoundPlay(self) end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
--on_step = airutils.stepfunc,
|
--on_step = airutils.stepfunc,
|
||||||
|
|
Loading…
Reference in New Issue