@nxg-org/mineflayer-physics-util 1.3.9 → 1.3.11
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.
|
@@ -12,7 +12,7 @@ const entityState_1 = require("../states/entityState");
|
|
|
12
12
|
const poses_1 = require("../states/poses");
|
|
13
13
|
const entity_physics_json_1 = __importDefault(require("../info/entity_physics.json"));
|
|
14
14
|
function getPose(entity) {
|
|
15
|
-
const pose = entity.metadata.find((e) => e.type === 18);
|
|
15
|
+
const pose = entity.metadata.find((e) => { var _a; return ((_a = e) === null || _a === void 0 ? void 0 : _a.type) === 18; });
|
|
16
16
|
return pose ? pose.value : poses_1.PlayerPoses.STANDING;
|
|
17
17
|
}
|
|
18
18
|
function load(data) {
|
|
@@ -59,13 +59,14 @@ function whichHandIsEntityUsingBoolean(entity) {
|
|
|
59
59
|
exports.whichHandIsEntityUsingBoolean = whichHandIsEntityUsingBoolean;
|
|
60
60
|
function getStatusEffectNamesForVersion(supportFeature) {
|
|
61
61
|
if (supportFeature("effectNamesAreRegistryNames")) {
|
|
62
|
+
// seems to not matter right now.
|
|
62
63
|
return {
|
|
63
|
-
jumpBoostEffectName: "
|
|
64
|
-
speedEffectName: "
|
|
65
|
-
slownessEffectName: "
|
|
66
|
-
dolphinsGraceEffectName: "
|
|
67
|
-
slowFallingEffectName: "
|
|
68
|
-
levitationEffectName: "
|
|
64
|
+
jumpBoostEffectName: "JumpBoost",
|
|
65
|
+
speedEffectName: "Speed",
|
|
66
|
+
slownessEffectName: "Slowness",
|
|
67
|
+
dolphinsGraceEffectName: "DolphinsGrace",
|
|
68
|
+
slowFallingEffectName: "SlowFalling",
|
|
69
|
+
levitationEffectName: "Levitation",
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
72
|
else {
|