#3778: Null check team collision rule because it does not exist in 1.8

This commit is contained in:
Outfluencer 2025-02-06 21:06:45 +01:00 committed by GitHub
parent 22aa6f5faf
commit 69861e5334
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,8 +284,11 @@ public class DownstreamBridge extends PacketHandler
t.setSuffix( team.getSuffix().getLeftOrCompute( ComponentSerializer::toString ) );
t.setFriendlyFire( team.getFriendlyFire() );
t.setNameTagVisibility( team.getNameTagVisibility().getKey() );
t.setCollisionRule( team.getCollisionRule().getKey() );
t.setColor( team.getColor() );
if ( team.getCollisionRule() != null )
{
t.setCollisionRule( team.getCollisionRule().getKey() );
}
}
if ( team.getPlayers() != null )
{