Invalidate previous physics result on instance change (#2086)

This commit is contained in:
GoldenStack 2024-04-06 16:02:02 -05:00 committed by GitHub
parent 9a0d61755e
commit 97b7f61def
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -805,6 +805,7 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev
this.isActive = true;
this.position = spawnPosition;
this.previousPosition = spawnPosition;
this.previousPhysicsResult = null;
this.instance = instance;
return instance.loadOptionalChunk(spawnPosition).thenAccept(chunk -> {
try {