mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
don't download skin from classicube.net twice in singleplayer
This commit is contained in:
parent
533e431fd7
commit
150fa1b91e
@ -31,7 +31,6 @@ namespace ClassicalSharp.Singleplayer {
|
|||||||
BlockInfo.CanPlace[i] = true;
|
BlockInfo.CanPlace[i] = true;
|
||||||
BlockInfo.CanDelete[i] = true;
|
BlockInfo.CanDelete[i] = true;
|
||||||
}
|
}
|
||||||
game.Downloader.AsyncGetSkin(game.LocalPlayer.SkinName, game.LocalPlayer.SkinName);
|
|
||||||
|
|
||||||
game.Events.RaiseBlockPermissionsChanged();
|
game.Events.RaiseBlockPermissionsChanged();
|
||||||
int seed = new Random().Next();
|
int seed = new Random().Next();
|
||||||
|
@ -94,8 +94,6 @@ void SPConnection_Connect(STRING_PURE String* ip, Int32 port) {
|
|||||||
Block_CanDelete[i] = true;
|
Block_CanDelete[i] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
String skin = String_FromRawArray(LocalPlayer_Instance.SkinNameRaw);
|
|
||||||
AsyncDownloader_DownloadSkin(&skin, &skin);
|
|
||||||
Event_RaiseVoid(&BlockEvents_PermissionsChanged);
|
Event_RaiseVoid(&BlockEvents_PermissionsChanged);
|
||||||
|
|
||||||
Random rnd; Random_InitFromCurrentTime(&rnd);
|
Random rnd; Random_InitFromCurrentTime(&rnd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user