Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Oct 30, 2023
1 parent c13ab2c commit 64dc628
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/const/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const ENVIRONMENTS: Record<GamePlatform, GameEnvironment> = {
flags: {
[GameFlag.BLOOD]: true,
[GameFlag.ADS]: true,
[GameFlag.COPYRIGHT]: true,
},
},
};
10 changes: 5 additions & 5 deletions src/game/scenes/menu/interface/copyright/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import {
export const Copyright: React.FC = () => (
<Wrapper>
<About>
{Environment.GetFlag(GameFlag.COPYRIGHT) && (
<Author>
Created by{' '}
<Author>
Created by{' '}
{Environment.GetFlag(GameFlag.COPYRIGHT) ? (
<Link href={pkg.author.url} target="_blank">
{pkg.author.name}
</Link>
</Author>
)}
) : pkg.author.name}
</Author>
Version {pkg.version}
</About>
<Discord href='https://discord.gg/cnFAdMsRxn' target="_blank">
Expand Down
3 changes: 1 addition & 2 deletions src/game/scenes/world/entities/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import { LEVEL_MAP_PERSPECTIVE } from '~const/world/level';
import { Crystal } from '~entity/crystal';
import { Sprite } from '~entity/sprite';
import { Analytics } from '~lib/analytics';
import { Assets } from '~lib/assets';
import { getClosestByIsometricDistance, isPositionsEqual } from '~lib/dimension';
import { progressionLinear, progressionQuadratic } from '~lib/progression';
Expand Down Expand Up @@ -654,7 +653,7 @@ export class Player extends Sprite implements IPlayer {
frameRate: (this.stamina) === 0.0 ? 6 : 8,
});
} catch (error) {
Analytics.TrackWarn((error as TypeError).message);
//
}
}

Expand Down

0 comments on commit 64dc628

Please sign in to comment.