@nxg-org/mineflayer-util-plugin 1.3.10 → 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.
@@ -94,7 +94,7 @@ class MovementFunctions {
94
94
  }
95
95
  forceLook(yaw, pitch, update = false) {
96
96
  const notchianYawAndPitch = { yaw: this.bot.util.math.toNotchianYaw(yaw), pitch: this.bot.util.math.toNotchianPitch(pitch) };
97
- this.bot._client.write("look", Object.assign(Object.assign({}, notchianYawAndPitch), { onGround: this.bot.entity.onGround }));
97
+ this.bot._client.write("look", notchianYawAndPitch);
98
98
  if (update) {
99
99
  this.bot.entity.yaw = yaw;
100
100
  this.bot.entity.pitch = pitch;
@@ -104,7 +104,7 @@ class MovementFunctions {
104
104
  forceLookAt(pos, update = false) {
105
105
  const { yaw, pitch } = this.bot.util.math.pointToYawAndPitch(this.bot, pos);
106
106
  const nyp = { yaw: this.bot.util.math.toNotchianYaw(yaw), pitch: this.bot.util.math.toNotchianPitch(pitch) };
107
- this.bot._client.write("look", Object.assign(Object.assign({}, nyp), { onGround: this.bot.entity.onGround }));
107
+ this.bot._client.write("look", nyp);
108
108
  if (update) {
109
109
  this.bot.entity.yaw = yaw;
110
110
  this.bot.entity.pitch = pitch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxg-org/mineflayer-util-plugin",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "description": "mineflayer utils for NextGEN mineflayer plugins.",
5
5
  "keywords": [
6
6
  "mineflayer",