Removed unneeded null check, according to eclipse :3

This commit is contained in:
bm01 2012-07-03 03:52:12 +02:00
parent 7799acec05
commit 1443e2f6b8
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ public class CommandHelper {
if (sender instanceof Player) {
Player player = (Player) sender;
if (player != null && !Permissions.getInstance().permission(player, permission)) {
if (!Permissions.getInstance().permission(player, permission)) {
player.sendMessage(LocaleLoader.getString("mcMMO.NoPermission"));
return true;
}

View File

@ -34,7 +34,7 @@ public class BleedTimer implements Runnable {
for (Entry<LivingEntity, Integer> entry : bleedList.entrySet()) {
LivingEntity entity = entry.getKey();
if (entry.getValue() <= 0 || entity.isDead() || entity == null) {
if (entry.getValue() <= 0 || entity.isDead()) {
remove(entity);
break;
}