@zardoy/flying-squid 0.0.110 → 0.0.111
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.
|
@@ -164,7 +164,7 @@ const player = function (player, serv, { version }) {
|
|
|
164
164
|
const DIG_TIME_ALLOWED_THRESHOLD = 50;
|
|
165
165
|
const tooFast = digTimeDiff > DIG_TIME_ALLOWED_THRESHOLD;
|
|
166
166
|
const tooFar = player.position.distanceTo(location) > MAX_DIG_DISTANCE;
|
|
167
|
-
if (
|
|
167
|
+
if (tooFar) {
|
|
168
168
|
stop = true;
|
|
169
169
|
await player.behavior('suspiciousDigStopped', {
|
|
170
170
|
tooFast,
|
|
@@ -173,8 +173,11 @@ const player = function (player, serv, { version }) {
|
|
|
173
173
|
location,
|
|
174
174
|
digTimeAllowedThreshold: DIG_TIME_ALLOWED_THRESHOLD,
|
|
175
175
|
actualDiggingTime: diggingTime,
|
|
176
|
-
expectedDiggingTime
|
|
177
|
-
|
|
176
|
+
expectedDiggingTime,
|
|
177
|
+
stop
|
|
178
|
+
}, (data) => {
|
|
179
|
+
stop = data.stop;
|
|
180
|
+
}, () => {
|
|
178
181
|
stop = false;
|
|
179
182
|
});
|
|
180
183
|
}
|