26 lines
824 B
Diff
26 lines
824 B
Diff
From 125596ec9aee25d141781b4010eac881c7b36eb5 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;
|
|
--
|
|
2.5.0
|
|
|