Added EnableAntiLag to ConfigFile.cs
This commit is contained in:
parent
d1e29e1035
commit
a8e55d44e6
2 changed files with 8 additions and 2 deletions
|
|
@ -97,6 +97,8 @@ namespace TShockAPI
|
||||||
public bool EnableDNSHostResolution = false;
|
public bool EnableDNSHostResolution = false;
|
||||||
|
|
||||||
public bool EnableBanOnUsernames = false;
|
public bool EnableBanOnUsernames = false;
|
||||||
|
|
||||||
|
public bool EnableAntiLag = true;
|
||||||
public static ConfigFile Read(string path)
|
public static ConfigFile Read(string path)
|
||||||
{
|
{
|
||||||
if (!File.Exists(path))
|
if (!File.Exists(path))
|
||||||
|
|
|
||||||
|
|
@ -116,8 +116,12 @@ namespace TShockAPI
|
||||||
|
|
||||||
private static bool HandleSync(GetDataHandlerArgs args)
|
private static bool HandleSync(GetDataHandlerArgs args)
|
||||||
{
|
{
|
||||||
Debug.WriteLine("FUCK SYNCS");
|
if (TShock.Config.EnableAntiLag)
|
||||||
return true;
|
{
|
||||||
|
Debug.WriteLine("FUCK SYNCS");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool HandlerGetData(PacketTypes type, TSPlayer player, MemoryStream data)
|
public static bool HandlerGetData(PacketTypes type, TSPlayer player, MemoryStream data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue