CC: Tweaked

CC: Tweaked

57M Downloads

Add back executeMainThreadTask

SquidDev opened this issue ยท 0 comments

commented

We removed this in d5f82fa, on the basis that @LuaFunction does everything you need. However, this is not suitable for people using IDynamicPeripheral or ILuaObject - they need to reimplement it themselves.

We should add a ILuaObject.executeMainThreadTask(task: ILuaTask): MethodResult function. It might be good to fix dan200/ComputerCraft#125 at the same time.