mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-10-28 14:31:05 +01:00
b512028dea
Upstream/An Sidestream has released updates that appears to apply and compile correctly This update has NOT been tested by YatopiaMC and as with ANY update, please do your own testing. Tuinity Changes: c9cfdba Updated Upstream (Paper) Purpur Changes: d4301d4 Updated Upstream (Paper) 0e1cb93 wandering trader spawn rate config 67a42f6 Despawn rate config options per projectile type 7a1012e Drop "Use-arrow-despawn-rate-for-all-projectiles.patch" 8767574 Fix #56 Fix #50 - Ridable baby and tameable settings 8ec6f6f Fix #46 - Essentials EC overriding Purpur a919aa3 Updated Upstream (Paper & Tuinity)
20 lines
1022 B
Diff
20 lines
1022 B
Diff
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
|
|
index 71210cfb2079e92392323e9df945975fed0ac9d4..7981875bb6b56d3a0d085ee924f1e61269e111c6 100644
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
|
@@ -1547,7 +1547,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
|
}
|
|
|
|
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
|
|
+ if (this instanceof EntityPlayer) { this.mot = Vec3D.ORIGIN; } // Paper - cancel entity velocity if teleported // Yatopia - fix PaperMC-4292
|
|
this.g(d0, d1, d2);
|
|
this.yaw = f;
|
|
this.pitch = f1;
|