Skip to content

Commit

Permalink
Fix stale entity clean-up and disable static saving
Browse files Browse the repository at this point in the history
  • Loading branch information
stujones11 committed Apr 9, 2019
1 parent e6a6e59 commit 668ea26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ local wield_entity = {
textures = {"wield3d:hand"},
wielder = nil,
timer = 0,
static_save = false,
}

function wield_entity:on_activate(staticdata)
if staticdata then
if staticdata and staticdata ~= "" then
self.wielder = staticdata
return
end
Expand Down

0 comments on commit 668ea26

Please sign in to comment.