mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Revert "Correct vehicle movement issues." Fixes BUKKIT-4565
This reverts commit 3d906d134417cfeefe7f71b916fee4d105e7650f. Conflicts: src/main/java/net/minecraft/server/EntityTrackerEntry.java
This commit is contained in:
1 parent
b2be908fbb
commit
69d3362335
2 files changed
+3
-11
No files matched your search
@@ -69,7 +69,7 @@ public class EntityTrackerEntry {
|
||||
this.scanPlayers(list);
|
||||
}
|
||||
|
||||
if (this.v != this.tracker.vehicle /* || this.tracker.vehicle != null && this.m % 60 == 0 */) { // CraftBukkit - Revert to 1.4 logic, this packet is a toggle
|
||||
if (this.v != this.tracker.vehicle || this.tracker.vehicle != null && this.m % 60 == 0) {
|
||||
this.v = this.tracker.vehicle;
|
||||
this.broadcast(new Packet39AttachEntity(0, this.tracker, this.tracker.vehicle));
|
||||
}
|
||||
@@ -343,17 +343,9 @@ public class EntityTrackerEntry {
|
||||
entityplayer.playerConnection.sendPacket(new Packet28EntityVelocity(this.tracker.id, this.tracker.motX, this.tracker.motY, this.tracker.motZ));
|
||||
}
|
||||
|
||||
// CraftBukkit start
|
||||
if (this.tracker.vehicle != null && this.tracker.id > this.tracker.vehicle.id) {
|
||||
entityplayer.playerConnection.sendPacket(new Packet39AttachEntity(0, this.tracker, this.tracker.vehicle));
|
||||
} else if (this.tracker.passenger != null && this.tracker.id > this.tracker.passenger.id) {
|
||||
entityplayer.playerConnection.sendPacket(new Packet39AttachEntity(0, this.tracker.passenger, this.tracker));
|
||||
}
|
||||
|
||||
if (this.tracker instanceof EntityInsentient && ((EntityInsentient) this.tracker).bI() != null) {
|
||||
entityplayer.playerConnection.sendPacket(new Packet39AttachEntity(1, this.tracker, ((EntityInsentient) this.tracker).bI()));
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
if (this.tracker instanceof EntityLiving) {
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
|
||||
Reference in new issue
Block a user