Skip to content

Commit 35b1437

Browse files
committed
Fixed module unloading
1 parent 0b6b428 commit 35b1437

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

main.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ end
7474

7575
function unloadModules()
7676
--module reload.
77-
if reload then
78-
for key, value in pairs(package.loaded) do
79-
if string.sub(key, 1, 7) == "tetris." then
80-
package.loaded[key] = nil
81-
end
77+
for key, value in pairs(package.loaded) do
78+
if string.sub(key, 1, 7) == "tetris." then
79+
package.loaded[key] = nil
8280
end
8381
end
8482
end

0 commit comments

Comments
 (0)