mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-10 10:01:48 +00:00
fix position diff (not just <0.1)
This commit is contained in:
parent
ac982ab881
commit
3edc0c5265
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
|
@ -197,7 +197,7 @@ server.on('login', function(client) {
|
|||
function sendRelativePositionChange(client,newPosition,onGround) {
|
||||
if (uuidToPlayer[client.uuid].position) {
|
||||
var diff = newPosition.minus(uuidToPlayer[client.uuid].position);
|
||||
if(diff.distanceTo(new vec3(0,0,0))>0.1)
|
||||
if(diff.distanceTo(new vec3(0,0,0))!=0)
|
||||
getOtherClients().forEach(function (otherClient) {
|
||||
otherClient.write('rel_entity_move', {
|
||||
entityId: uuidToPlayer[client.uuid].id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue