Push new product
This commit is contained in:
parent
df94f71453
commit
7a5ecf6f36
5 changed files with 39 additions and 7 deletions
|
@ -117,7 +117,7 @@ class OpenSimPageState extends State<OpenSimPage> {
|
|||
SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
if (prefs.containsKey("settings")) {
|
||||
String encoded = prefs.getString("settings")!;
|
||||
CompoundTag tag = await NbtIo.readBase64String(encoded);
|
||||
CompoundTag tag = await NbtIo.readBase64String(encoded) as CompoundTag;
|
||||
if (tag.containsKey("user")) {
|
||||
settings.currentUser = User.load(tag.get("user") as CompoundTag);
|
||||
settings.loggedIn = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue