mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Dead Player's shouldn't be able to move
This fixes a lot of game state issues where packets were delayed for processing due to 1.15's new queue but processed while dead.
This commit is contained in:
parent
e7044bdebb
commit
6242e1dad0
1 changed files with 8 additions and 1 deletions
|
@ -268,7 +268,7 @@
|
|||
}
|
||||
|
||||
public boolean isTextFilteringEnabled() {
|
||||
@@ -1061,7 +1134,13 @@
|
||||
@@ -1061,13 +1134,19 @@
|
||||
|
||||
@Override
|
||||
public void removeVehicle() {
|
||||
|
@ -283,6 +283,13 @@
|
|||
this.boardingCooldown = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isImmobile() {
|
||||
- return super.isImmobile() || this.isSleeping();
|
||||
+ return super.isImmobile() || this.isSleeping() || this.isRemoved() || !valid; // Paper - player's who are dead or not in a world shouldn't move...
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1144,10 +1223,15 @@
|
||||
|
||||
f *= 0.2F + f2 * f2 * 0.8F;
|
||||
|
|
Loading…
Reference in a new issue