diff options
author | EdGruberman <ed@rjump.com> | 2013-01-24 17:37:01 -0700 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2013-01-28 11:26:32 -0600 |
commit | 132fdbc4ac9bdbef5cf22715f55db886d3c21b8f (patch) | |
tree | 79595b25c945a39dd530587961aac9f0c3fb8221 /src/main/java/net/minecraft/server/PortalTravelAgent.java | |
parent | 50e74b3b49b790e5834f869c2d57c2afcfad83fa (diff) | |
download | craftbukkit-132fdbc4ac9bdbef5cf22715f55db886d3c21b8f.tar craftbukkit-132fdbc4ac9bdbef5cf22715f55db886d3c21b8f.tar.gz craftbukkit-132fdbc4ac9bdbef5cf22715f55db886d3c21b8f.tar.lz craftbukkit-132fdbc4ac9bdbef5cf22715f55db886d3c21b8f.tar.xz craftbukkit-132fdbc4ac9bdbef5cf22715f55db886d3c21b8f.zip |
Target default world when returning from The End; Fixes BUKKIT-3494
Due to the having to generate new logic to avoid using the customized
PlayerConnection.moveToWorld, entities returning from The End were not
properly calculating their exit target. This commit corrects that
logic.
Diffstat (limited to 'src/main/java/net/minecraft/server/PortalTravelAgent.java')
-rw-r--r-- | src/main/java/net/minecraft/server/PortalTravelAgent.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/PortalTravelAgent.java b/src/main/java/net/minecraft/server/PortalTravelAgent.java index 7733e806..5d5774e6 100644 --- a/src/main/java/net/minecraft/server/PortalTravelAgent.java +++ b/src/main/java/net/minecraft/server/PortalTravelAgent.java @@ -185,9 +185,9 @@ public class PortalTravelAgent { // entity.setPositionRotation((double) i, (double) j, (double) k, entity.yaw, 0.0F); // entity.motX = entity.motY = entity.motZ = 0.0D; position.setPitch(0.0F); - position.setX(0); - position.setY(0); - position.setZ(0); + velocity.setX(0); + velocity.setY(0); + velocity.setZ(0); } else { double d4; int k1; |