1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-15 11:45:42 +00:00

Add back ILuaAPI

This ensures binary compatibility with all those evil mods (Plethora)
which CC internals.
This commit is contained in:
SquidDev 2017-12-07 09:06:47 +00:00
parent f3b11bc1c2
commit 2728c63512
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
package dan200.computercraft.core.apis;
/**
* This exists purely to ensure binary compatibility.
*
* @see dan200.computercraft.api.lua.ILuaAPI
*/
public interface ILuaAPI extends dan200.computercraft.api.lua.ILuaAPI
{
void advance( double v );
default void update()
{
advance( 0.05 );
}
}

View File

@ -12,6 +12,7 @@ import dan200.computercraft.api.filesystem.IFileSystem;
import dan200.computercraft.api.filesystem.IMount;
import dan200.computercraft.api.filesystem.IWritableMount;
import dan200.computercraft.api.lua.*;
import dan200.computercraft.api.lua.ILuaAPI;
import dan200.computercraft.api.peripheral.IPeripheral;
import dan200.computercraft.core.apis.*;
import dan200.computercraft.core.filesystem.FileSystem;