Skip to content

Commit

Permalink
Fixed Brawl NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
DevulTj committed Oct 13, 2022
1 parent 463715c commit f493a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/Gamemodes/Brawl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Platformer.Gamemodes;
internal class Brawl : BaseGamemode
{

public override PlatformerPawn CreatePlayerInstance( Client cl ) => new BrawlPlayer();
public override PlatformerPawn CreatePlayerInstance( Client cl ) => new BrawlPlayer( cl );

public override void Spawn()
{
Expand Down
2 changes: 2 additions & 0 deletions code/Gamemodes/BrawlPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ namespace Platformer.Gamemodes;

internal partial class BrawlPlayer : PlatformerPawn
{
public BrawlPlayer( Client cl ) : base( cl ) { }
public BrawlPlayer() : base() { }

[Net, Predicted]
public TimeSince TimeSincePunch { get; set; }
Expand Down

0 comments on commit f493a15

Please sign in to comment.