increased max players and made Signal work with __new

This commit is contained in:
Evil Factory
2021-09-22 13:10:41 -03:00
parent b07e5d9b0b
commit 88eb227284
3 changed files with 3 additions and 3 deletions
@@ -9,7 +9,7 @@ namespace Barotrauma.Items.Components
public float power;
public float strength;
internal Signal(string value, int stepsTaken = 0, Character sender = null,
public Signal(string value, int stepsTaken = 0, Character sender = null,
Item source = null, float power = 0.0f, float strength = 1.0f)
{
this.value = value;
@@ -561,7 +561,7 @@ namespace Barotrauma
if (hf.function is Closure)
{
var result = env.lua.Call(hf.function, args);
if (result.CastToBool() != false)
if (!result.IsNil())
lastResult = result;
}
//else if (hf.function is NLua.LuaFunction luaFunction)
@@ -8,7 +8,7 @@ namespace Barotrauma.Networking
public const int DefaultPort = 27015;
public const int DefaultQueryPort = 27016;
public const int MaxPlayers = 16;
public const int MaxPlayers = 256;
public const int ServerNameMaxLength = 60;