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:
Jonas Herzig
2021-02-17 00:56:47 +01:00
parent a9a0c2ddc3
commit ae0b0e3f13

View File

@@ -637,12 +637,11 @@ public class CameraEntity
}
public boolean canSpectate(Entity e) {
return e != null && !e.isInvisible()
//#if MC>=10800
&& (e instanceof PlayerEntity || e instanceof MobEntity || e instanceof ItemFrameEntity);
//#else
//$$ && e instanceof EntityPlayer; // cannot be more generic since 1.7.10 has no concept of eye height
return e != null
//#if MC<10800
//$$ && e instanceof EntityPlayer // cannot be more generic since 1.7.10 has no concept of eye height
//#endif
&& !e.isInvisible();
}
//#if MC<11400