Skip to content
Permalink
Browse files

Fix changing rank causing water/lava/grass/admincrete to become placa…

…ble/deletable client side, on a map that has buildable/deletable off
  • Loading branch information...
UnknownShadow200 committed Jun 3, 2017
1 parent 8dca69c commit 8b5bf5c4693165eb9ec473d47167a7f18ac32bac
Showing with 1 addition and 6 deletions.
  1. +1 −6 fCraft/Player/PlayerInfo.Actions.cs
@@ -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

0 comments on commit 8b5bf5c

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