Compare commits
12 Commits
c792c4e9ee
...
d1acdf3a5b
Author | SHA1 | Date |
---|---|---|
teknomunk | d1acdf3a5b | |
teknomunk | 5b3985f06f | |
teknomunk | f2de62f013 | |
teknomunk | 569329da56 | |
teknomunk | d2add19024 | |
teknomunk | a66880ea75 | |
teknomunk | ab5b85772f | |
the-real-herowl | aa4fb97935 | |
the-real-herowl | ec4589e93d | |
teknomunk | 06012b5336 | |
the-real-herowl | 0bb9980970 | |
teknomunk | fbc2dd6ea0 |
|
@ -43,7 +43,7 @@ local arrow_entity = {
|
|||
_fire_damage_resistant = true,
|
||||
|
||||
_save_fields = {
|
||||
"last_pos", "startpos", "damage", "is_critical", "stuck", "stuckin", "stuckin_player", "time_in_air", "vl_projectile", "collectable"
|
||||
"last_pos", "startpos", "damage", "is_critical", "stuck", "stuckin", "stuckin_player", "time_in_air", "vl_projectile",
|
||||
},
|
||||
|
||||
_damage=1, -- Damage on impact
|
||||
|
@ -159,9 +159,6 @@ local arrow_entity = {
|
|||
out[field] = self["_"..field]
|
||||
end
|
||||
|
||||
-- Preserve entity properties
|
||||
out.properties = self.object:get_properties()
|
||||
|
||||
return minetest.serialize(out)
|
||||
end,
|
||||
on_activate = function(self, staticdata, dtime_s)
|
||||
|
@ -171,12 +168,6 @@ local arrow_entity = {
|
|||
local data = minetest.deserialize(staticdata)
|
||||
if not data then return end
|
||||
|
||||
-- Restore entity properties
|
||||
if data.properties then
|
||||
self.object:set_properties(data.properties)
|
||||
data.properties = nil
|
||||
end
|
||||
|
||||
-- Restore arrow state
|
||||
local save_fields = self._save_fields
|
||||
for i = 1,#save_fields do
|
||||
|
|
Loading…
Reference in New Issue