26 lines
834 B
Diff
26 lines
834 B
Diff
From c0e8d43f419d7f489cd0ae348618f897e95b0402 Mon Sep 17 00:00:00 2001
|
|
From: libraryaddict <libraryaddict115@yahoo.co.nz>
|
|
Date: Fri, 29 Jan 2016 16:59:12 +1300
|
|
Subject: [PATCH] Fix enderman teleporting when vegetated
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityEnderman.java b/src/main/java/net/minecraft/server/EntityEnderman.java
|
|
index a250062..5ad2d07 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityEnderman.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityEnderman.java
|
|
@@ -157,6 +157,11 @@ public class EntityEnderman extends EntityMonster {
|
|
}
|
|
|
|
protected boolean k(double d0, double d1, double d2) {
|
|
+ if (isVegetated())
|
|
+ {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
double d3 = this.locX;
|
|
double d4 = this.locY;
|
|
double d5 = this.locZ;
|
|
--
|
|
1.9.5.msysgit.0
|
|
|