2020-09-10 20:35:41 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Ivan Pekov <ivan@mrivanplays.com>
|
|
|
|
Date: Thu, 10 Sep 2020 20:55:13 +0300
|
|
|
|
Subject: [PATCH] Give them items motion
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2020-09-13 09:00:43 +02:00
|
|
|
index 71210cfb2079e92392323e9df945975fed0ac9d4..7981875bb6b56d3a0d085ee924f1e61269e111c6 100644
|
2020-09-10 20:35:41 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2020-09-13 09:00:43 +02:00
|
|
|
@@ -1547,7 +1547,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
2020-09-10 20:35:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setPositionRotation(double d0, double d1, double d2, float f, float f1) {
|
|
|
|
- this.mot = new Vec3D(0, 0, 0); // Paper - cancel entity velocity if teleported
|
2020-09-11 08:03:00 +02:00
|
|
|
+ if (this instanceof EntityPlayer) { this.mot = Vec3D.ORIGIN; } // Paper - cancel entity velocity if teleported // Yatopia - fix PaperMC-4292
|
2020-09-10 20:35:41 +02:00
|
|
|
this.g(d0, d1, d2);
|
|
|
|
this.yaw = f;
|
|
|
|
this.pitch = f1;
|