Fix rank permissions box in GUI incorrectly allowing you to use permissions below -20

This commit is contained in:
UnknownShadow200 2018-10-06 22:16:13 +10:00
parent a04f42f9ab
commit e5b1e9425d
3 changed files with 4 additions and 4 deletions

View File

@ -1174,7 +1174,7 @@ namespace MCGalaxy.Gui
0, 0,
0}); 0});
this.rank_numPerm.Minimum = new decimal(new int[] { this.rank_numPerm.Minimum = new decimal(new int[] {
50, 20,
0, 0,
0, 0,
-2147483648}); -2147483648});

View File

@ -334,8 +334,8 @@ namespace MCGalaxy {
} }
/// <summary> Sends a block change packet to the user containing the current block at the given coordinates. </summary> /// <summary> Sends a block change packet to the user containing the current block at the given coordinates. </summary>
/// <remarks> Vanilla client always assumes block place/delete succeeds, so this method is usually used to echo back the /// <remarks> Vanilla client always assumes block place/delete succeeds, so this is usually used to echo back the
/// old block. (e.g. due to insufficient permission to change that block, used as mark for draw operations) </remarks> /// old block. (e.g. insufficient permission to change that block, used as mark for draw operations) </remarks>
public void RevertBlock(ushort x, ushort y, ushort z) { public void RevertBlock(ushort x, ushort y, ushort z) {
SendBlockchange(x, y, z, level.GetBlock(x, y, z)); SendBlockchange(x, y, z, level.GetBlock(x, y, z));
} }