prismarine-physics 1.4.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +17 -10
- package/HISTORY.md +12 -0
- package/lib/attribute.js +1 -3
- package/package.json +4 -4
|
@@ -13,13 +13,20 @@ jobs:
|
|
|
13
13
|
- name: Set up Node.js
|
|
14
14
|
uses: actions/setup-node@master
|
|
15
15
|
with:
|
|
16
|
-
node-version:
|
|
17
|
-
-
|
|
18
|
-
uses:
|
|
19
|
-
with:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
node-version: 14.0.0
|
|
17
|
+
- id: publish
|
|
18
|
+
uses: JS-DevTools/npm-publish@v1
|
|
19
|
+
with:
|
|
20
|
+
token: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
21
|
+
- name: Create Release
|
|
22
|
+
if: steps.publish.outputs.type != 'none'
|
|
23
|
+
id: create_release
|
|
24
|
+
uses: actions/create-release@v1
|
|
25
|
+
env:
|
|
26
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
27
|
+
with:
|
|
28
|
+
tag_name: ${{ steps.publish.outputs.version }}
|
|
29
|
+
release_name: Release ${{ steps.publish.outputs.version }}
|
|
30
|
+
body: ${{ steps.publish.outputs.version }}
|
|
31
|
+
draft: false
|
|
32
|
+
prerelease: false
|
package/HISTORY.md
CHANGED
package/lib/attribute.js
CHANGED
|
@@ -39,8 +39,6 @@ exports.checkAttributeModifier = function (attributes, uuid) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
exports.deleteAttributeModifier = function (attributes, uuid) {
|
|
42
|
-
|
|
43
|
-
if (modifier.uuid === uuid) delete attributes.modifiers[modifier]
|
|
44
|
-
}
|
|
42
|
+
attributes.modifiers = attributes.modifiers.filter(modifier => modifier.uuid !== uuid)
|
|
45
43
|
return attributes
|
|
46
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prismarine-physics",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Provide the physics engine for minecraft entities",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"homepage": "https://github.com/PrismarineJS/prismarine-physics#readme",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"expect": "^27.3.1",
|
|
32
|
-
"mocha": "^
|
|
32
|
+
"mocha": "^10.0.0",
|
|
33
33
|
"prismarine-block": "^1.7.3",
|
|
34
34
|
"prismarine-physics": "file:./",
|
|
35
|
-
"standard": "^
|
|
35
|
+
"standard": "^17.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"minecraft-data": "^
|
|
38
|
+
"minecraft-data": "^3.0.0",
|
|
39
39
|
"prismarine-nbt": "^2.0.0",
|
|
40
40
|
"vec3": "^0.1.7"
|
|
41
41
|
}
|