Storage: Fix typo in code snippet
This commit is contained in:
parent
f15a2fc290
commit
05307506a6
@ -118,7 +118,7 @@ with another program.
|
||||
local data = { username = "player1", score = 1234 }
|
||||
meta:set_string("foo", minetest.serialize(data))
|
||||
|
||||
data = minetest.deserialize(minetest:get_string("foo"))
|
||||
data = minetest.deserialize(meta:get_string("foo"))
|
||||
```
|
||||
|
||||
### Private Metadata
|
||||
|
@ -14,14 +14,14 @@ redirect_from:
|
||||
In questo capitolo imparerai i vari modi per immagazzinare dati.
|
||||
|
||||
- [Metadati](#metadati)
|
||||
- [Cos'è un metadato?](#cos-e-un-metadato)
|
||||
- [Cos'è un metadato?](#cosè-un-metadato)
|
||||
- [Ottenere i metadati di un oggetto](#ottenere-i-metadati-di-un-oggetto)
|
||||
- [Lettura e scrittura](#lettura-e-scrittura)
|
||||
- [Chiavi speciali](#chiavi-speciali)
|
||||
- [Immagazzinare tabelle](#immagazzinare-tabelle)
|
||||
- [Metadati privati](#metadati-privati)
|
||||
- [Tabelle Lua](#tabelle-lua)
|
||||
- [Storaggio mod](#storaggio-mod)
|
||||
- [Storaggio Mod](#storaggio-mod)
|
||||
- [Database](#database)
|
||||
- [Decidere quale usare](#decidere-quale-usare)
|
||||
- [Il tuo turno](#il-tuo-turno)
|
||||
@ -102,7 +102,7 @@ Quello in Lua tende a essere molto più veloce e corrisponde al formato usato da
|
||||
local data = { username = "utente1", score = 1234 }
|
||||
meta:set_string("foo", minetest.serialize(data))
|
||||
|
||||
data = minetest.deserialize(minetest:get_string("foo"))
|
||||
data = minetest.deserialize(meta:get_string("foo"))
|
||||
```
|
||||
|
||||
### Metadati privati
|
||||
|
Loading…
x
Reference in New Issue
Block a user