From 4be3319d9a1910be6b4cc24353b2b4538c4972cd Mon Sep 17 00:00:00 2001 From: Layne Date: Tue, 15 Mar 2022 13:34:34 -0400 Subject: [PATCH] loading screen % changed --- src/App.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a947827a..ee5a8fc2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -35,7 +35,7 @@ export const App: FC<{}> = props => return urls; }, []); - const loadPercent = useCallback(() => setPercent(prevValue => (prevValue + 16.66)), []); + const loadPercent = useCallback(() => setPercent(prevValue => (prevValue + 20)), []); const handler = useCallback((event: NitroEvent) => { @@ -78,9 +78,9 @@ export const App: FC<{}> = props => setMessage('Connection Error'); return; case NitroCommunicationDemoEvent.CONNECTION_CLOSED: - if(GetNitroInstance().roomEngine) GetNitroInstance().roomEngine.dispose(); + //if(GetNitroInstance().roomEngine) GetNitroInstance().roomEngine.dispose(); - setIsError(true); + //setIsError(true); setMessage('Connection Error'); HabboWebTools.send(-1, 'client.init.handshake.fail'); @@ -88,7 +88,7 @@ export const App: FC<{}> = props => case RoomEngineEvent.ENGINE_INITIALIZED: loadPercent(); - setTimeout(() => setIsReady(true), 200); + setTimeout(() => setIsReady(true), 300); return; case NitroLocalizationEvent.LOADED: GetNitroInstance().core.asset.downloadAssets(getPreloadAssetUrls(), (status: boolean) => @@ -134,7 +134,7 @@ export const App: FC<{}> = props => { (!isReady || isError) && } - +