mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
fix physics blocks losing block permissions from recent commits
This commit is contained in:
parent
48f3e1486d
commit
4328ff25e2
@ -153,11 +153,14 @@ namespace MCGalaxy.Blocks {
|
|||||||
//Name/ID : Lowest : Disallow : Allow
|
//Name/ID : Lowest : Disallow : Allow
|
||||||
line.Replace(" ", "").FixedSplit(args, ':');
|
line.Replace(" ", "").FixedSplit(args, ':');
|
||||||
|
|
||||||
byte block = Block.Byte(args[0]);
|
byte block;
|
||||||
|
if (!byte.TryParse(args[0], out block)) {
|
||||||
|
block = Block.Byte(args[0]);
|
||||||
|
}
|
||||||
if (block == Block.Invalid) continue;
|
if (block == Block.Invalid) continue;
|
||||||
|
|
||||||
BlockPerms perms = new BlockPerms();
|
BlockPerms perms = new BlockPerms();
|
||||||
perms.BlockID = block;
|
perms.BlockID = block;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
perms.MinRank = (LevelPermission)int.Parse(args[1]);
|
perms.MinRank = (LevelPermission)int.Parse(args[1]);
|
||||||
string disallowRaw = args[2], allowRaw = args[3];
|
string disallowRaw = args[2], allowRaw = args[3];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user