Skip to content

Commit 9dccfe1

Browse files
Fix AutoRank crashing when trying to autorank on player join
1 parent fa46670 commit 9dccfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fCraft/Player/PlayerInfo.Actions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ public void ChangeRank( [NotNull] Player player, [NotNull] Rank newRank, [CanBeN
793793
target.Send(Packet.MakeSetClickDistance((target.World.maxReach < ReachDistance
794794
&& !target.IsStaff) ? target.World.maxReach : ReachDistance));
795795
}
796-
if (target.Supports(CpeExt.BlockPermissions)) {
796+
if (target.Supports(CpeExt.BlockPermissions) && target.World != null) {
797797
target.SendBlockPermissions();
798798
}
799799

0 commit comments

Comments
 (0)