Skip to content

Commit

Permalink
Attempt to improve meteor syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
lorgan3 committed Oct 27, 2024
1 parent 03336d1 commit c17bd5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/data/spells/meteor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,13 @@ export class Meteor extends Container implements Syncable {
this.maxBounceDuration /= 1.5;
}

Server.instance.dynamicUpdate(this);
if (done) {
this.body.gravity = 0;
this.body.setVelocity(0, 0);
Server.instance.dynamicUpdate(this);
Server.instance.kill(this);
} else {
Server.instance.dynamicUpdate(this);
}
}
}
Expand Down

0 comments on commit c17bd5f

Please sign in to comment.