Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Always process movement for vehicles and passengers. Fixes BUKKIT-4142
As an optimization we don't do any movement processing on entities that have not moved. However, players in minecarts trigger this condition when the minecart is moving on its own. This causes issues with things that rely on player collision like tripwires. To correct this and any future related issues we always handle movement for passengers and their vehicles even if one of the two hasn't moved since they are linked.
Dieser Commit ist enthalten in:
Ursprung
2715e43305
Commit
f08081c77d
@ -418,7 +418,7 @@ public abstract class Entity {
|
||||
|
||||
public void move(double d0, double d1, double d2) {
|
||||
// CraftBukkit start - Don't do anything if we aren't moving
|
||||
if (d0 == 0 && d1 == 0 && d2 == 0) {
|
||||
if (d0 == 0 && d1 == 0 && d2 == 0 && this.vehicle == null && this.passenger == null) {
|
||||
return;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren