Skip to content

Commit

Permalink
Removed useless TODOs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MuresanSergiu committed Apr 14, 2015
1 parent 354e5e2 commit 63bddae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mytown/core/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public class Utils {
*/
@SuppressWarnings("unchecked")
public static boolean isOp(EntityPlayer player) {
if(player == null) // TODO: It appears fakeplayers can be null?
if(player == null)
return false;

if(player.getGameProfile() == null)
return false; // TODO: Could be for fake players. Still not sure if I should allow it.
return false;

UserListOps ops = MinecraftServer.getServer().getConfigurationManager().func_152603_m();
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public static void commandCall(String permission, ICommandSender sender, List<St
}
}

// Try it twice like a gangsta
try {
try {
m.invoke(null, sender, args);
Expand Down

0 comments on commit 63bddae

Please sign in to comment.