From b212f41fea087ade762617f95ab8872a73e657ef Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Fri, 10 Feb 2023 20:21:09 +0100 Subject: [PATCH] Allow floating point in timer.start --- Capy64/Runtime/Libraries/Timer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Capy64/Runtime/Libraries/Timer.cs b/Capy64/Runtime/Libraries/Timer.cs index 1469cc4..63f1811 100644 --- a/Capy64/Runtime/Libraries/Timer.cs +++ b/Capy64/Runtime/Libraries/Timer.cs @@ -54,7 +54,7 @@ class Timer : IPlugin { var L = Lua.FromIntPtr(state); - var delay = L.CheckInteger(1); + var delay = L.CheckNumber(1); L.ArgumentCheck(delay > 0, 1, "delay must be greater than 0"); var timerId = _timerId++;