Skip to content

Commit

Permalink
More binary compatibility stubs for ILuaAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Dec 7, 2017
1 parent 29a3a0c commit abd0613
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,11 @@ public void addAPI( ILuaAPI api )
{
m_apis.add( api );
}

public void addAPI( dan200.computercraft.core.apis.ILuaAPI api )
{
addAPI( (ILuaAPI) api );
}

public void setPeripheral( int side, IPeripheral peripheral )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import dan200.computercraft.api.ComputerCraftAPI;
import dan200.computercraft.api.filesystem.IMount;
import dan200.computercraft.api.filesystem.IWritableMount;
import dan200.computercraft.api.lua.ILuaAPI;
import dan200.computercraft.api.peripheral.IPeripheral;
import dan200.computercraft.core.apis.IAPIEnvironment;
import dan200.computercraft.api.lua.ILuaAPI;
import dan200.computercraft.core.computer.Computer;
import dan200.computercraft.core.computer.IComputerEnvironment;
import dan200.computercraft.shared.common.ServerTerminal;
Expand Down Expand Up @@ -313,6 +313,11 @@ public void addAPI( ILuaAPI api )
m_computer.addAPI( api );
}

public void addAPI( dan200.computercraft.core.apis.ILuaAPI api )
{
m_computer.addAPI( api );
}

public void setPeripheral( int side, IPeripheral peripheral )
{
m_computer.setPeripheral( side, peripheral );
Expand Down

0 comments on commit abd0613

Please sign in to comment.