2016-02-14 23:58:33 +01:00
|
|
|
From c6967f167cb74718389c7d87a0e4847d2824e855 Mon Sep 17 00:00:00 2001
|
2015-11-08 12:15:28 +01:00
|
|
|
From: libraryaddict <libraryaddict115@yahoo.co.nz>
|
|
|
|
Date: Mon, 9 Nov 2015 00:13:21 +1300
|
|
|
|
Subject: [PATCH] Add player spectator
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/IEntitySelector.java b/src/main/java/net/minecraft/server/IEntitySelector.java
|
|
|
|
index 1536600..f86cf48 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/IEntitySelector.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/IEntitySelector.java
|
|
|
|
@@ -89,7 +89,7 @@ public final class IEntitySelector
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
- return !(entity instanceof EntityHuman) || !((EntityHuman)entity).isSpectator();
|
|
|
|
+ return !(entity instanceof EntityHuman) || !(((EntityHuman)entity).isSpectator() && !((EntityPlayer)entity).spectating);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean apply(Object obj)
|
|
|
|
--
|
2016-02-14 23:58:33 +01:00
|
|
|
2.5.0
|
2015-11-08 12:15:28 +01:00
|
|
|
|