From efe24a61287ef4a1283772ef95012e949faee167 Mon Sep 17 00:00:00 2001 From: Coronavitae <110838898+Coronavitae@users.noreply.github.com> Date: Sat, 27 Aug 2022 15:15:24 -0400 Subject: [PATCH] Update pulp.lua The "store" function currently checks whether the variable to be stored is a string and crashes with an error if not. As strings are not the only type of variable that is used with store, this is unnecessary. --- pulp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pulp.lua b/pulp.lua index d2d2cd3..078ee51 100644 --- a/pulp.lua +++ b/pulp.lua @@ -1695,7 +1695,6 @@ function pulp.__fn_restore(name) end function pulp.__fn_store(name) - assert(type(name) == "string") local value = pulp.getvariable(name) if type(value) ~= "table" then pulp.store[name] = value @@ -2080,4 +2079,4 @@ function pulp.__ex_solid(x, y, id) local tile = pulp:getTile(id) return (tile and tile.solid) and 1 or 0 end -end \ No newline at end of file +end