Spectators added (#2852)
This commit is contained in:
@@ -167,7 +167,15 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!a_Entity->IsMob() && !a_Entity->IsMinecart() && !a_Entity->IsPlayer() && !a_Entity->IsBoat())
|
||||
if (
|
||||
!a_Entity->IsMob() &&
|
||||
!a_Entity->IsMinecart() &&
|
||||
(
|
||||
!a_Entity->IsPlayer() ||
|
||||
static_cast<cPlayer *>(a_Entity)->IsGameModeSpectator()
|
||||
) &&
|
||||
!a_Entity->IsBoat()
|
||||
)
|
||||
{
|
||||
// Not an entity that interacts with a projectile
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user