Merge pull request #974 from CocoTheOwner/copypastafix

Fix copy paste of string gone wrong
This commit is contained in:
Brian Fopiano 2023-03-03 14:37:04 -08:00 committed by GitHub
commit aa7631ecd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -70,7 +70,7 @@ public class DimensionHandler implements DecreeParameterHandler<IrisDimension> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).toList().get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which Dimension \"" + in + "\"");
}
}

View File

@ -83,7 +83,7 @@ public class EntityHandler implements DecreeParameterHandler<IrisEntity> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).collect(Collectors.toList()).get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which Entity \"" + in + "\"");
}
}

View File

@ -64,7 +64,7 @@ public class GeneratorHandler implements DecreeParameterHandler<IrisGenerator> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).collect(Collectors.toList()).get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which Generator \"" + in + "\"");
}
}

View File

@ -48,7 +48,7 @@ public class PlayerHandler implements DecreeParameterHandler<Player> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).collect(Collectors.toList()).get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which Player \"" + in + "\"");
}
}

View File

@ -67,7 +67,7 @@ public class RegionHandler implements DecreeParameterHandler<IrisRegion> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).collect(Collectors.toList()).get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which Region \"" + in + "\"");
}
}

View File

@ -64,7 +64,7 @@ public class ScriptHandler implements DecreeParameterHandler<IrisScript> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).collect(Collectors.toList()).get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which Script \"" + in + "\"");
}
}

View File

@ -53,7 +53,7 @@ public class WorldHandler implements DecreeParameterHandler<World> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).collect(Collectors.toList()).get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which World \"" + in + "\"");
}
}

View File

@ -58,7 +58,7 @@ public class ObjectHandler implements DecreeParameterHandler<String> {
try {
return options.stream().filter((i) -> toString(i).equalsIgnoreCase(in)).collect(Collectors.toList()).get(0);
} catch (Throwable e) {
throw new DecreeParsingException("Unable to filter which Biome \"" + in + "\"");
throw new DecreeParsingException("Unable to filter which Object \"" + in + "\"");
}
}