Skip to content

Commit 8b5bf5c

Browse files
Fix changing rank causing water/lava/grass/admincrete to become placable/deletable client side, on a map that has buildable/deletable off
1 parent 8dca69c commit 8b5bf5c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fCraft/Player/PlayerInfo.Actions.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -794,12 +794,7 @@ public void ChangeRank( [NotNull] Player player, [NotNull] Rank newRank, [CanBeN
794794
&& !target.IsStaff) ? target.World.maxReach : ReachDistance));
795795
}
796796
if (target.Supports(CpeExt.BlockPermissions)) {
797-
target.Send(Packet.MakeSetBlockPermission(Block.Admincrete, target.Can(Permission.PlaceAdmincrete), target.Can(Permission.PlaceAdmincrete)));
798-
target.Send(Packet.MakeSetBlockPermission(Block.Water, target.Can(Permission.PlaceWater), true));
799-
target.Send(Packet.MakeSetBlockPermission(Block.StillWater, target.Can(Permission.PlaceWater), true));
800-
target.Send(Packet.MakeSetBlockPermission(Block.Lava, target.Can(Permission.PlaceLava), true));
801-
target.Send(Packet.MakeSetBlockPermission(Block.StillLava, target.Can(Permission.PlaceLava), true));
802-
target.Send(Packet.MakeSetBlockPermission(Block.Grass, target.Can(Permission.PlaceGrass), true));
797+
target.SendBlockPermissions();
803798
}
804799

805800
// inform the player of the rank change

0 commit comments

Comments
 (0)