mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Do not send stats in sandbox
This commit is contained in:
parent
e93b475f72
commit
8ec2a90ae3
@ -8,6 +8,7 @@ import { blueprintShape, UPGRADES } from "../../game/upgrades";
|
||||
import { tutorialGoals } from "../../game/tutorial_goals";
|
||||
import { BeltComponent } from "../../game/components/belt";
|
||||
import { StaticMapEntityComponent } from "../../game/components/static_map_entity";
|
||||
import { queryParamOptions } from "../../core/query_parameters";
|
||||
|
||||
const logger = createLogger("game_analytics");
|
||||
|
||||
@ -19,6 +20,10 @@ const analyticsLocalFile = "shapez_token_123.bin";
|
||||
|
||||
export class ShapezGameAnalytics extends GameAnalyticsInterface {
|
||||
get environment() {
|
||||
if (queryParamOptions.sandboxMode) {
|
||||
return "sandbox";
|
||||
}
|
||||
|
||||
if (G_IS_DEV) {
|
||||
return "dev";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user