Skip to content

Commit

Permalink
Fix AutoRank crashing when trying to autorank on player join
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Nov 13, 2017
1 parent fa46670 commit 9dccfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fCraft/Player/PlayerInfo.Actions.cs
Expand Up @@ -793,7 +793,7 @@ public sealed partial class PlayerInfo {
target.Send(Packet.MakeSetClickDistance((target.World.maxReach < ReachDistance target.Send(Packet.MakeSetClickDistance((target.World.maxReach < ReachDistance
&& !target.IsStaff) ? target.World.maxReach : ReachDistance)); && !target.IsStaff) ? target.World.maxReach : ReachDistance));
} }
if (target.Supports(CpeExt.BlockPermissions)) { if (target.Supports(CpeExt.BlockPermissions) && target.World != null) {
target.SendBlockPermissions(); target.SendBlockPermissions();
} }


Expand Down

0 comments on commit 9dccfe1

Please sign in to comment.