Skip to content

Commit

Permalink
Unnecessary parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
skykatik committed Feb 22, 2021
1 parent fef4d8a commit f24a772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/inside/TheInspectionPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void init(){
return;
}

if(packet.versionType == null || ((packet.version == -1 || !packet.versionType.equals(Version.type)) && Version.build != -1 && !netServer.admins.allowsCustomClients())){
if(packet.versionType == null || (packet.version == -1 || !packet.versionType.equals(Version.type)) && Version.build != -1 && !netServer.admins.allowsCustomClients()){
con.kick(!Version.type.equals(packet.versionType) ? KickReason.typeMismatch : KickReason.customClient);
return;
}
Expand Down Expand Up @@ -205,7 +205,7 @@ String checkColor(String str){
String color = str.substring(1, i);

if(Colors.get(color.toUpperCase()) != null || Colors.get(color.toLowerCase()) != null){
Color result = (Colors.get(color.toLowerCase()) == null ? Colors.get(color.toUpperCase()) : Colors.get(color.toLowerCase()));
Color result = Colors.get(color.toLowerCase()) == null ? Colors.get(color.toUpperCase()) : Colors.get(color.toLowerCase());
if(result.a <= 0.8f){
return str.substring(i + 1);
}
Expand Down

0 comments on commit f24a772

Please sign in to comment.