Add Evil Type option during world creation
This commit is contained in:
parent
e2d52a4cb6
commit
fa6b5845f0
1 changed files with 17 additions and 13 deletions
|
|
@ -185,20 +185,24 @@ namespace TShockAPI
|
||||||
string logFilename;
|
string logFilename;
|
||||||
string logPathSetupWarning;
|
string logPathSetupWarning;
|
||||||
|
|
||||||
OTAPI.Hooks.Net.Socket.Create = () =>
|
OTAPI.Hooks.Net.Socket.Create = () =>
|
||||||
{
|
{
|
||||||
//Console.WriteLine($"Creating socket {nameof(LinuxTcpSocket)}");
|
//Console.WriteLine($"Creating socket {nameof(LinuxTcpSocket)}");
|
||||||
return new LinuxTcpSocket();
|
return new LinuxTcpSocket();
|
||||||
//return new OTAPI.Sockets.PoolSocket();
|
//return new OTAPI.Sockets.PoolSocket();
|
||||||
//return new Terraria.Net.Sockets.TcpSocket();
|
//return new Terraria.Net.Sockets.TcpSocket();
|
||||||
};
|
};
|
||||||
OTAPI.Hooks.Player.Announce = (int playerId) =>
|
OTAPI.Hooks.Player.Announce = (int playerId) =>
|
||||||
{
|
{
|
||||||
//TShock handles this
|
//TShock handles this
|
||||||
return OTAPI.HookResult.Cancel;
|
return OTAPI.HookResult.Cancel;
|
||||||
};
|
};
|
||||||
|
OTAPI.Hooks.Game.PostInitialize += () =>
|
||||||
|
{
|
||||||
|
Main.SettingsUnlock_WorldEvil = true;
|
||||||
|
};
|
||||||
|
|
||||||
TerrariaApi.Reporting.CrashReporter.HeapshotRequesting += CrashReporter_HeapshotRequesting;
|
TerrariaApi.Reporting.CrashReporter.HeapshotRequesting += CrashReporter_HeapshotRequesting;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue