Skip to content

Commit

Permalink
Print CenterHtml on next frame to attempt overriding other plugins' html
Browse files Browse the repository at this point in the history
  • Loading branch information
Interesting-exe committed Jul 2, 2024
1 parent 6630b91 commit 38e329e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WASDMenuAPI/WASDMenuAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace WASDMenuAPI;
public class WASDMenuAPI : BasePlugin
{
public override string ModuleName => "WASDMenuAPI";
public override string ModuleVersion => "1.0.1";
public override string ModuleVersion => "1.0.2";
public override string ModuleAuthor => "Interesting";

public static readonly Dictionary<int, WasdMenuPlayer> Players = new();
Expand Down Expand Up @@ -81,7 +81,9 @@ public void OnTick()

player.Buttons = player.player.Buttons;
if(player.CenterHtml != "")
player.player.PrintToCenterHtml(player.CenterHtml);
Server.NextFrame(() =>
player.player.PrintToCenterHtml(player.CenterHtml)
);
}
}

Expand Down

0 comments on commit 38e329e

Please sign in to comment.