Learwolf / TES3MP-0.8-Scripts

A list of my tes3mp server Lua scripts available for public use.
13 stars 5 forks source link

Fixed issue where `resetNormalCellsOnRestart` didn't work on linux. #5

Closed HotaruBlaze closed 2 years ago

HotaruBlaze commented 2 years ago

This fixes getCellsArray on Linux by checking the Operating System its running on before trying to list the directory because find behaves different on Linux, treating /b as a directory, where as a argument flag on windows.

Note: checking if pfile is nil might be good call here however redundant because we should never reach that state, as this could should also work on macos.