2013-04-03 07:20:29 +00:00
|
|
|
From 17e2d92a3c6cf85d461ad1e19d06299653341f0e Mon Sep 17 00:00:00 2001
|
2013-01-19 08:20:35 +00: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.
|
|
|
|
|
|
|
|
---
|
2013-04-03 07:20:29 +00:00
|
|
|
src/main/java/net/minecraft/server/Entity.java | 1 +
|
|
|
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
2013-01-19 08:20:35 +00:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2013-04-03 07:20:29 +00:00
|
|
|
index 7890d6f..8e743ec 100644
|
2013-01-19 08:20:35 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2013-03-15 21:35:56 +00:00
|
|
|
@@ -430,6 +430,7 @@ public abstract class Entity {
|
2013-01-19 08:20:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void move(double d0, double d1, double d2) {
|
|
|
|
+ if (d0 == 0 && d1 == 0 && d2 == 0) { return; } // Spigot
|
2013-03-15 21:35:56 +00:00
|
|
|
if (this.Z) {
|
2013-01-19 08:20:35 +00:00
|
|
|
this.boundingBox.d(d0, d1, d2);
|
|
|
|
this.locX = (this.boundingBox.a + this.boundingBox.d) / 2.0D;
|
|
|
|
--
|
2013-04-03 07:20:29 +00:00
|
|
|
1.7.0.4
|
2013-01-19 08:20:35 +00:00
|
|
|
|