Allow any entity to be spectated on 1.8+ (fixes #382)
Idk why this was restricted in the first place, ask Marius: 163faddd
This commit is contained in:
@@ -637,12 +637,11 @@ public class CameraEntity
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean canSpectate(Entity e) {
|
public boolean canSpectate(Entity e) {
|
||||||
return e != null && !e.isInvisible()
|
return e != null
|
||||||
//#if MC>=10800
|
//#if MC<10800
|
||||||
&& (e instanceof PlayerEntity || e instanceof MobEntity || e instanceof ItemFrameEntity);
|
//$$ && e instanceof EntityPlayer // cannot be more generic since 1.7.10 has no concept of eye height
|
||||||
//#else
|
|
||||||
//$$ && e instanceof EntityPlayer; // cannot be more generic since 1.7.10 has no concept of eye height
|
|
||||||
//#endif
|
//#endif
|
||||||
|
&& !e.isInvisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
//#if MC<11400
|
//#if MC<11400
|
||||||
|
|||||||
Reference in New Issue
Block a user