Do not send stats in sandbox

This commit is contained in:
tobspr 2020-09-29 11:19:16 +02:00
parent e93b475f72
commit 8ec2a90ae3
1 changed files with 5 additions and 0 deletions

View File

@ -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";
}