diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed4cc94..ff35697 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - repository: cuberite/CuberitePluginChecker - fetch-depth: 0 + - uses: actions/checkout@v4 - # Sets up lua - name: Install Lua run: | sudo apt install lua5.1 luarocks libsqlite3-dev @@ -25,7 +21,6 @@ jobs: sudo luarocks install luasocket sudo luarocks install luacheck - # Sets up the environment - name: Set up environment run: | git clone --depth=1 https://github.com/cuberite/gallery ~/Gallery @@ -36,7 +31,6 @@ jobs: wget -O ~/ManualAPI.zip 'https://ci.appveyor.com/api/projects/cuberite/cuberite/artifacts/ManualAPI.zip?job=Windows-x64&pr=false&branch=master' unzip ~/ManualAPI.zip -d ~ - # Runs the test - name: Run tests run: | lua CuberitePluginChecker.lua -p ~/Gallery -a ~/AutoAPI -e ~/ManualAPI.lua -i APIImpl/All.lua -s tests/Gallery/FuzzCommands.lua diff --git a/APIImpl/PluginManager.lua b/APIImpl/PluginManager.lua index 092f6b7..406f79d 100644 --- a/APIImpl/PluginManager.lua +++ b/APIImpl/PluginManager.lua @@ -84,7 +84,7 @@ local function ForEachPlugin(a_Simulator, a_Self, a_Callback) ParamValues = { a_Self:GetCurrentPlugin() }, Notes = "cPluginManager:ForEachPlugin() callback", }) - return not(res == true) -- If the callback signalized an abort, return false + return (res ~= true) -- If the callback signalized an abort, return false end