The issue was in my systemd service file, it didn't shutdown minetest properly, but killed it instead. So the saving routine wasn't executed, being in register_on_shutdown. The fix is to send the minetest instance a SIGINT signal, that shuts it down properly before any killing of the remaining proce...