From f08081c77d5d8aaf03ae5997b5b8330824302766 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Tue, 30 Apr 2013 01:21:04 -0500 Subject: [PATCH] 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. --- src/main/java/net/minecraft/server/Entity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java index 943a6ab37e..0f7be97a10 100644 --- a/src/main/java/net/minecraft/server/Entity.java +++ b/src/main/java/net/minecraft/server/Entity.java @@ -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