mirror of
https://github.com/stujones11/wield3d.git
synced 2024-08-20 05:24:05 +02:00
Fix stale entity clean-up and disable static saving
This commit is contained in:
parent
e6a6e59b5c
commit
668ea2682a
3
init.lua
3
init.lua
@ -79,10 +79,11 @@ local wield_entity = {
|
|||||||
textures = {"wield3d:hand"},
|
textures = {"wield3d:hand"},
|
||||||
wielder = nil,
|
wielder = nil,
|
||||||
timer = 0,
|
timer = 0,
|
||||||
|
static_save = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
function wield_entity:on_activate(staticdata)
|
function wield_entity:on_activate(staticdata)
|
||||||
if staticdata then
|
if staticdata and staticdata ~= "" then
|
||||||
self.wielder = staticdata
|
self.wielder = staticdata
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user