Skip to content
Permalink
Browse files

Fix AutoRank crashing when trying to autorank on player join

  • Loading branch information...
UnknownShadow200 committed Nov 13, 2017
1 parent fa46670 commit 9dccfe1588fb4e8c591d202d09a88338ccfa8f0d
Showing with 1 addition and 1 deletion.
  1. +1 −1 fCraft/Player/PlayerInfo.Actions.cs
@@ -793,7 +793,7 @@ public sealed partial class PlayerInfo {
target.Send(Packet.MakeSetClickDistance((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();
}

0 comments on commit 9dccfe1

Please sign in to comment.
You can’t perform that action at this time.