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) { 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