mirror of https://github.com/Minestom/Minestom.git
Invalidate previous physics result on instance change (#2086)
This commit is contained in:
parent
9a0d61755e
commit
97b7f61def
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue