I removed the ++i statement and like crashed the world!

This commit is contained in:
Nameless-123 committed 2020-04-24 14:12:59 +02:00
1 parent 6146ff8ed8
commit 33f6b90839
1 file changed
+13 -8
+13 -8
View File
@@ -324,7 +324,6 @@ public class DrawCommand
} }
} }
} }
return successes; return successes;
} }
@@ -379,19 +378,25 @@ public class DrawCommand
} }
for(int i =0; i<height;) { for(int i =0; i<height;++i) {
if(pointup==true){ if(pointup){
r=radius-radius*i/height-1; r=radius-radius*i/height-1;
}else if(pointup==false){ }else if(!pointup){
r=radius*i/height; r=radius*i/height;
} }
switch(shape){ switch(shape){
case "circle":affected+=drawCircle(source, pos, i, (int) Math.round(r), block, orientation, replacement, list, mbpos);break; case "circle":{
case "square":affected+=drawSquare(source, pos, i, (int) Math.round(r), block, orientation, replacement, list, mbpos);break; affected+=drawCircle(source, pos, i, (int) Math.round(r), block, orientation, replacement, list, mbpos);
default:{ Messenger.m(source,"gi Test circle "+shape+" I hope this works");
}
case "square":{
affected+=drawSquare(source, pos, i, (int) Math.round(r), block, orientation, replacement, list, mbpos);
Messenger.m(source,"gi Test circle "+shape+" I hope this works");
}
/*default:{
Messenger.m(source,"gi !"+shape+"| is an incorrect shape, read options for which shapes are available"); Messenger.m(source,"gi !"+shape+"| is an incorrect shape, read options for which shapes are available");
return 0; return 0;
} }*/
} }
} }