From cc13a424dcb3752982012735e5a62b27007269f8 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Mon, 4 Dec 2017 06:53:45 +0100 Subject: [PATCH] save last_player to os-data --- os.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/os.lua b/os.lua index cf6ad8c..8550227 100644 --- a/os.lua +++ b/os.lua @@ -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