mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-21 03:33:23 +00:00
Performance pass 2 (Loop can be terminated after condition is met)
This commit is contained in:
parent
f8f8b884bc
commit
1087d27523
@ -36,9 +36,9 @@ public class CommandIrisDownload extends MortarCommand
|
||||
|
||||
for(String i : args)
|
||||
{
|
||||
if(i.equals("-t") || i.equals("--trim"))
|
||||
{
|
||||
if (i.equals("-t") || i.equals("--trim")) {
|
||||
trim = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,10 +48,10 @@ public class CommandIrisObjectPaste extends MortarCommand
|
||||
|
||||
for(String i : args)
|
||||
{
|
||||
if(i.equalsIgnoreCase("-edit"))
|
||||
{
|
||||
intoWand = true;
|
||||
}
|
||||
if (i.equalsIgnoreCase("-edit")) {
|
||||
intoWand = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(file == null || !file.exists())
|
||||
|
@ -51,10 +51,10 @@ public class CommandIrisObjectSave extends MortarCommand
|
||||
|
||||
for(String i : args)
|
||||
{
|
||||
if(i.equals("-o"))
|
||||
{
|
||||
overwrite = true;
|
||||
}
|
||||
if (i.equals("-o")) {
|
||||
overwrite = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Player p = sender.player();
|
||||
|
@ -39,10 +39,10 @@ public class CommandIrisStructureCreate extends MortarCommand
|
||||
|
||||
for(String i : args)
|
||||
{
|
||||
if(i.equalsIgnoreCase("-3d"))
|
||||
{
|
||||
d3 = true;
|
||||
}
|
||||
if (i.equalsIgnoreCase("-3d")) {
|
||||
d3 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
sender.sendMessage("Creating new Structure");
|
||||
|
@ -74,10 +74,10 @@ public class CommandIrisStudioGoto extends MortarCommand
|
||||
|
||||
for(String i : args)
|
||||
{
|
||||
if(i.equalsIgnoreCase("-cave"))
|
||||
{
|
||||
cave = true;
|
||||
}
|
||||
if (i.equalsIgnoreCase("-cave")) {
|
||||
cave = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
IrisBiome biome = args[0].equals("this") ? g.sampleTrueBiome(p.getLocation().getBlockX(), p.getLocation().getBlockZ()) : g.loadBiome(args[0]);
|
||||
|
@ -38,10 +38,10 @@ public class CommandIrisStudioPackage extends MortarCommand
|
||||
|
||||
for(String i : args)
|
||||
{
|
||||
if(i.equalsIgnoreCase("-o"))
|
||||
{
|
||||
o = true;
|
||||
}
|
||||
if (i.equalsIgnoreCase("-o")) {
|
||||
o = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
String dim = args[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user