Oops, interface implementations on Program don't carry over into the compiled game script. IConsoleProgram will have to just stand as a compile-time checking convenience.
This commit is contained in:
@ -86,7 +86,7 @@ namespace IngameScript
|
||||
private const int CooldownTicks = 12;
|
||||
private const int SealTimeoutTicks = 30;
|
||||
|
||||
public Airlock(string name, IConsoleProgram _program)
|
||||
public Airlock(string name, Program _program)
|
||||
{
|
||||
_ini = _program.Ini;
|
||||
_name = name;
|
||||
@ -121,7 +121,8 @@ namespace IngameScript
|
||||
// Precondition: _ini.TryParse() should be called on the block before calling this function.
|
||||
private void addVent(IMyAirVent vent)
|
||||
{
|
||||
if (_airVent == null) {
|
||||
if (_airVent == null)
|
||||
{
|
||||
_airVent = vent;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user