Add method to delete all cookies

Added a method to delete all cookies from the cookie store.
This commit is contained in:
xiaoze_qwq_ 2026-08-19 17:53:12 +08:00 committed by GitHub
parent 8ac8051f96
commit 8f40794d25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,6 +210,7 @@ namespace MinecraftClient
public void GetCookie(string key, out byte[]? data) => Cookies.TryGetValue(key, out data);
public void SetCookie(string key, byte[] data) => Cookies[key] = data;
public void DeleteCookie(string key) => Cookies.Remove(key, out var data);
public void DeleteAllCookies() => Cookies?.Clear();
public (Location location, string material, string typeLabel, string[] frontText, string[] backText, bool isWaxed)[] GetKnownSigns()
{
lock (signDataLock)