Skip to content

Commit 5bd4631

Browse files
Allow any values for block draw and collide type
1 parent f5004f2 commit 5bd4631

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fCraft/Commands/CpeCommands.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ static void CustomBlockDefineHandler(Player p, string args, bool global, BlockDe
14791479
p.Message(" &bSet name to: " + def.Name);
14801480
break;
14811481
case 1:
1482-
if (byte.TryParse(args, out value) && value <= 2) {
1482+
if (byte.TryParse(args, out value)) {
14831483
step++; def.CollideType = value;
14841484
p.Message(" &bSet solidity to: " + value);
14851485
}
@@ -1585,7 +1585,7 @@ static void CustomBlockDefineHandler(Player p, string args, bool global, BlockDe
15851585
p.Message(" &bSet maximum coords to X:{0} Y:{1} Z:{2}", maxx, maxy, maxz);
15861586
break;
15871587
case 11:
1588-
if (byte.TryParse(args, out value) && value <= 4) {
1588+
if (byte.TryParse(args, out value)) {
15891589
step++; def.BlockDraw = value;
15901590
p.Message(" &bSet block draw type to: " + value);
15911591
}
@@ -1725,7 +1725,7 @@ static void CustomBlockEditHandler(Player p, CommandReader cmd, bool global, Blo
17251725
case "solidity":
17261726
case "collide":
17271727
case "collidetype":
1728-
if (byte.TryParse(args, out value) && value <= 2) {
1728+
if (byte.TryParse(args, out value)) {
17291729
p.Message("&bChanged solidity of &a{0}&b from &a{1}&b to &a{2}", def.Name, def.CollideType, value);
17301730
def.CollideType = value;
17311731
hasChanged = true;
@@ -1847,7 +1847,7 @@ static void CustomBlockEditHandler(Player p, CommandReader cmd, bool global, Blo
18471847
break;
18481848
case "draw":
18491849
case "blockdraw":
1850-
if (byte.TryParse(args, out value) && value <= 4) {
1850+
if (byte.TryParse(args, out value)) {
18511851
p.Message("&bChanged block draw type of &a{0}&b from &a{1}&b to &a{2}", def.Name, def.BlockDraw, value);
18521852
def.BlockDraw = value;
18531853
hasChanged = true;

0 commit comments

Comments
 (0)