"Freeze" Lua state after calling machine.reboot

This commit is contained in:
Alessandro Proto 2023-04-20 22:21:34 +02:00
parent 97161f0c85
commit e152203afd

View file

@ -94,10 +94,14 @@ public class MachineLib : IComponent
return 0;
}
private static int L_Reboot(IntPtr _)
private static int L_Reboot(IntPtr state)
{
var L = Lua.FromIntPtr(state);
RuntimeManager.Reboot();
L.Yield(0);
return 0;
}