2013-02-02 23:38:54 +01:00
|
|
|
From 54137647a6488134d5268180e083f4ab05ae8215 Mon Sep 17 00:00:00 2001
|
2013-01-19 09:20:35 +01:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sat, 19 Jan 2013 01:11:30 -0500
|
|
|
|
Subject: [PATCH] Skip entity.move() if we are not moving anywhere.
|
|
|
|
|
|
|
|
---
|
|
|
|
src/main/java/net/minecraft/server/Entity.java | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2013-02-02 23:38:54 +01:00
|
|
|
index 26b7a1f..2340fad 100644
|
2013-01-19 09:20:35 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2013-01-20 04:52:20 +01:00
|
|
|
@@ -423,6 +423,7 @@ public abstract class Entity {
|
2013-01-19 09:20:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void move(double d0, double d1, double d2) {
|
|
|
|
+ if (d0 == 0 && d1 == 0 && d2 == 0) { return; } // Spigot
|
|
|
|
if (this.Y) {
|
|
|
|
this.boundingBox.d(d0, d1, d2);
|
|
|
|
this.locX = (this.boundingBox.a + this.boundingBox.d) / 2.0D;
|
|
|
|
--
|
|
|
|
1.8.1-rc2
|
|
|
|
|