Skip to content

Commit

Permalink
Fix changing rank causing water/lava/grass/admincrete to become placa…
Browse files Browse the repository at this point in the history
…ble/deletable client side, on a map that has buildable/deletable off
  • Loading branch information
UnknownShadow200 committed Jun 3, 2017
1 parent 8dca69c commit 8b5bf5c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fCraft/Player/PlayerInfo.Actions.cs
Expand Up @@ -794,12 +794,7 @@ public sealed partial class PlayerInfo {
&& !target.IsStaff) ? target.World.maxReach : ReachDistance));
}
if (target.Supports(CpeExt.BlockPermissions)) {
target.Send(Packet.MakeSetBlockPermission(Block.Admincrete, target.Can(Permission.PlaceAdmincrete), target.Can(Permission.PlaceAdmincrete)));
target.Send(Packet.MakeSetBlockPermission(Block.Water, target.Can(Permission.PlaceWater), true));
target.Send(Packet.MakeSetBlockPermission(Block.StillWater, target.Can(Permission.PlaceWater), true));
target.Send(Packet.MakeSetBlockPermission(Block.Lava, target.Can(Permission.PlaceLava), true));
target.Send(Packet.MakeSetBlockPermission(Block.StillLava, target.Can(Permission.PlaceLava), true));
target.Send(Packet.MakeSetBlockPermission(Block.Grass, target.Can(Permission.PlaceGrass), true));
target.SendBlockPermissions();
}

// inform the player of the rank change
Expand Down

0 comments on commit 8b5bf5c

Please sign in to comment.