Skip to content

Commit

Permalink
v2.8.2-luajit: Merge remote-tracking branch 'origin/master' into luajit
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Apr 22, 2024
2 parents 92aa74e + 053ce11 commit cca7cc0
Show file tree
Hide file tree
Showing 32 changed files with 2,254 additions and 2,531 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- name: Download ROM & CC:T
run: |
sudo git clone https://github.com/MCJack123/craftos2-rom /usr/local/share/craftos
git clone --branch v1.20.1-1.109.2 https://github.com/cc-tweaked/CC-Tweaked ../CC-Tweaked
git clone --branch v1.20.1-1.110.2 https://github.com/cc-tweaked/CC-Tweaked ../CC-Tweaked
patch -p1 -d ../CC-Tweaked < resources/CCT-Tests.patch
- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ jobs:
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "<>"
git add .
git commit -m $GITHUB_REF
git push origin master
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"valarray": "cpp",
"csetjmp": "cpp"
},
"C_Cpp.default.cppStandard": "c++14",
"C_Cpp.default.cppStandard": "c++17",
"C_Cpp.default.cStandard": "c11",
"lldb.displayFormat": "auto",
"lldb.showDisassembly": "auto",
Expand Down
4 changes: 2 additions & 2 deletions api/generic_peripheral/inventory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class inventory : public peripheral {
else src = p, dest = this;

if (fromSlot < 1 || fromSlot > src->size()) return luaL_error(L, "From slot out of range (between 1 and %d)", src->size());
if (!lua_isnil(L, 4) && (toSlot < 1 || toSlot > dest->size())) return luaL_error(L, "To slot out of range (between 1 and %d)", dest->size());
if (!lua_isnoneornil(L, 4) && (toSlot < 1 || toSlot > dest->size())) return luaL_error(L, "To slot out of range (between 1 and %d)", dest->size());
if (limit <= 0) {
lua_pushinteger(L, 0);
return 1;
Expand Down Expand Up @@ -103,4 +103,4 @@ class inventory : public peripheral {
}
};

#endif
#endif
Loading

0 comments on commit cca7cc0

Please sign in to comment.