mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2025-03-02 10:41:49 +01:00
#3778: Null check team collision rule because it does not exist in 1.8
This commit is contained in:
parent
22aa6f5faf
commit
69861e5334
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user