Allow floating point in timer.start

This commit is contained in:
Alessandro Proto 2023-02-10 20:21:09 +01:00
parent 38c62c8f45
commit b212f41fea

View file

@ -54,7 +54,7 @@ class Timer : IPlugin
{ {
var L = Lua.FromIntPtr(state); 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"); L.ArgumentCheck(delay > 0, 1, "delay must be greater than 0");
var timerId = _timerId++; var timerId = _timerId++;