increased max players and made Signal work with __new
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Barotrauma.Items.Components
|
|||||||
public float power;
|
public float power;
|
||||||
public float strength;
|
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)
|
Item source = null, float power = 0.0f, float strength = 1.0f)
|
||||||
{
|
{
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
|||||||
@@ -561,7 +561,7 @@ namespace Barotrauma
|
|||||||
if (hf.function is Closure)
|
if (hf.function is Closure)
|
||||||
{
|
{
|
||||||
var result = env.lua.Call(hf.function, args);
|
var result = env.lua.Call(hf.function, args);
|
||||||
if (result.CastToBool() != false)
|
if (!result.IsNil())
|
||||||
lastResult = result;
|
lastResult = result;
|
||||||
}
|
}
|
||||||
//else if (hf.function is NLua.LuaFunction luaFunction)
|
//else if (hf.function is NLua.LuaFunction luaFunction)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace Barotrauma.Networking
|
|||||||
public const int DefaultPort = 27015;
|
public const int DefaultPort = 27015;
|
||||||
public const int DefaultQueryPort = 27016;
|
public const int DefaultQueryPort = 27016;
|
||||||
|
|
||||||
public const int MaxPlayers = 16;
|
public const int MaxPlayers = 256;
|
||||||
|
|
||||||
public const int ServerNameMaxLength = 60;
|
public const int ServerNameMaxLength = 60;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user