Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
fix: more client pixi deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Mar 3, 2024
1 parent ad5700c commit dd69f23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ export class Game {
const grassColor = this.map.mapLoaded
? this.map.getMapDef().biome.colors.grass
: 8433481;
this.pixi.renderer.backgroundColor = grassColor;
this.pixi.renderer.background.color = grassColor;
// Module rendering
this.playerBarn.render(this.camera, debug);
this.bulletBarn.render(this.camera, debug);
Expand Down
2 changes: 1 addition & 1 deletion client/src/ui/opponentDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class LoadoutDisplay {
const r = this.Et.mapLoaded
? this.Et.getMapDef().biome.colors.grass
: 8433481;
this.pixi.renderer.backgroundColor = r;
this.pixi.renderer.background.color = r;
this.Rt.render(this.De, t);
this.Et.render(this.De);
debugLines.flush();
Expand Down

0 comments on commit dd69f23

Please sign in to comment.