Skip to content

Commit

Permalink
Update to node 18 (#627)
Browse files Browse the repository at this point in the history
* Update to node 18.0.0

* Update effects.js

* Update index.js
  • Loading branch information
rom1504 authored Jun 3, 2023
1 parent 1158513 commit 1112ec7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]
mcVersionIndex: [0, 1, 2, 3, 4, 5, 6, 7, 8]
fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 10.0.0
node-version: 18.0.0
- name: Publish if version has been updated
uses: pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df
with: # All of theses inputs are optional
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if (typeof process !== 'undefined' && parseInt(process.versions.node.split('.')[0]) < 14) {
console.error('[\x1b[31mCRITICAL\x1b[0m] Node.JS 14 or newer is required')
if (typeof process !== 'undefined' && parseInt(process.versions.node.split('.')[0]) < 18) {
console.error('[\x1b[31mCRITICAL\x1b[0m] Node.JS 18 or newer is required')
console.error('[\x1b[31mCRITICAL\x1b[0m] You can download the new version from https://nodejs.org/')
console.error(`[\x1b[31mCRITICAL\x1b[0m] Your current Node.JS version is: ${process.versions.node}`)
process.exit(1)
Expand Down
1 change: 0 additions & 1 deletion src/lib/plugins/effects.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

module.exports.entity = function (entity, serv) {
entity.effects = {}
for (let i = 1; i <= 23; i++) { // 23 in 1.8, 27 in 1.9
Expand Down

0 comments on commit 1112ec7

Please sign in to comment.