Merge pull request #15 from bell07/master

save last_player to os-data
This commit is contained in:
Gerold55 2017-12-04 01:00:46 -05:00 committed by GitHub
commit e4ef3f37ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
os.lua
View File

@ -100,6 +100,7 @@ function os_class:receive_fields(fields, sender)
if self.appdata.os.current_app == appname then
self.meta:set_string('formspec', app:get_formspec())
end
self.appdata.os.last_player = sender:get_player_name()
self:save()
end